~ubuntu-branches/ubuntu/gutsy/mysql-dfsg-5.0/gutsy

« back to all changes in this revision

Viewing changes to mysql-test/include/ps_conv.inc

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-04-03 09:43:01 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20070403094301-fnjhfr59hu72pvtg
Tags: 5.0.38-0ubuntu1
* Package the Enterprise version again (.37 was a community version), since
  Debian and we have always done so. This brings in a few more bug fixes and
  makes functional derivations less likely.
* debian/README.Maintainer: Add pointer to upstream download URL, since it
  is very hard to find the Enterprise versions.
* Disable 33_scripts__mysql_create_system_tables__no_test.dpatch, since that
  script was removed upstream.
* debian/patches/41_scripts__mysql_install_db.sh__no_test.dpatch: Adapted to
  changed formatting in new upstream version.
* Remove debian/patches/86_PATH_MAX.dpatch, fixed upstream.
* Add debian/patches/90_org_tables_definition.dpatch: Fix local variable
  declaration in libmysqld/sql_parse.cc to fix compilation with
  EMBEDDED_LIBRARY.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1152
1152
######## SELECT .. WHERE column(date/time/..)=value(CHAR(n)/LONGTEXT) ########
1153
1153
set @arg00= '1991-01-01 01:01:01' ;
1154
1154
select 'true' as found from t9 
1155
 
where c1= 20 and c13= '1991-01-01 01:01:01' and c14= '1991-01-01 01:01:01' and
 
1155
where c1= 20 and c13= CAST('1991-01-01 01:01:01' AS DATE) and c14= '1991-01-01 01:01:01' and
1156
1156
  c15= '1991-01-01 01:01:01' and c16= '1991-01-01 01:01:01' and
1157
1157
  c17= '1991-01-01 01:01:01' ;
1158
1158
select 'true' as found from t9 
1159
 
where c1= 20 and c13= @arg00 and c14= @arg00 and c15= @arg00 and c16= @arg00
 
1159
where c1= 20 and c13= CAST(@arg00 AS DATE) and c14= @arg00 and c15= @arg00 and c16= @arg00
1160
1160
  and c17= @arg00 ;
1161
1161
prepare stmt1 from "select 'true' as found from t9 
1162
 
where c1= 20 and c13= '1991-01-01 01:01:01' and c14= '1991-01-01 01:01:01' and
 
1162
where c1= 20 and c13= CAST('1991-01-01 01:01:01' AS DATE) and c14= '1991-01-01 01:01:01' and
1163
1163
  c15= '1991-01-01 01:01:01' and c16= '1991-01-01 01:01:01' and
1164
1164
  c17= '1991-01-01 01:01:01'" ;
1165
1165
execute stmt1 ;
1166
1166
prepare stmt1 from "select 'true' as found from t9 
1167
 
where c1= 20 and c13= ? and c14= ? and c15= ? and c16= ? and c17= ?" ;
 
1167
where c1= 20 and c13= CAST(? AS DATE) and c14= ? and c15= ? and c16= ? and c17= ?" ;
1168
1168
execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
1169
1169
 
1170
1170
 
1177
1177
  c16= CAST('1991-01-01 01:01:01' as datetime) and
1178
1178
  c17= CAST('1991-01-01 01:01:01' as datetime) ;
1179
1179
select 'true' as found from t9 
1180
 
where c1= 20 and c13= @arg00 and c14= @arg00 and c15= @arg00 and c16= @arg00
 
1180
where c1= 20 and c13= CAST(@arg00 AS DATE) and c14= @arg00 and c15= @arg00 and c16= @arg00
1181
1181
  and c17= @arg00 ;
1182
1182
prepare stmt1 from "select 'true' as found from t9 
1183
1183
where c1= 20 and c13= CAST('1991-01-01 01:01:01' as datetime) and
1187
1187
  c17= CAST('1991-01-01 01:01:01' as datetime)" ;
1188
1188
execute stmt1 ;
1189
1189
prepare stmt1 from "select 'true' as found from t9 
1190
 
where c1= 20 and c13= ? and c14= ? and c15= ? and c16= ? and c17= ?" ;
 
1190
where c1= 20 and c13= CAST(? AS DATE) and c14= ? and c15= ? and c16= ? and c17= ?" ;
1191
1191
execute stmt1 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
1192
1192
 
1193
1193