~drizzle-trunk/drizzle/development

  • Committer: Jay Pipes
  • Date: 2008-12-17 04:02:20 UTC
  • Revision ID: jpipes@serialcoder-20081217040220-b062yr3pwibi0j2o
Enabled the null.test.

* Fixed numerous SQL syntax change errors in null.test
* Added tests to ensure that UPDATE .. SET col=NULL produced appropriate errors, but only when rows were contained in the table.
* Added tests to ensure that LOAD DATA INFILE produces errors when setting NULL on NOT NULL columns

sql_insert.cc:

Modified the check_that_all_fields_are_given_values() function to ensure
an error is thrown instead of a warning when NULL is inserted into a NOT NULL column.

sql_update.cc:

Modifed mysql_update(), setting ignore to only CHECK_FIELD_ERROR_FOR_NULL, which 
is used by field_conv:set_field_to_null() and set_field_to_null_with_conversions() 
during the update

field_conv.cc:

Raise an error, not a warning, when NULL is set for NOT NULL columns

sql_load.cc:

Set ignore again, same as in sql_update.cc, but leave error as 1263 which 
gives additional information in a LOAD statement.

Added a null_test.txt file to check the LOAD DATA INFILE statement in null.test
Filename Latest Rev Last Changed Committer Comment Size
..
parts 1 16 years ago brian clean slate Diff
14897.frm 1 16 years ago brian clean slate 8.4 KB Diff Download File
bad_gis_data.dat 1 16 years ago brian clean slate 4 bytes Diff Download File
bug15328.cnf 1 16 years ago brian clean slate 44 bytes Diff Download File
bug16266.000001 1 16 years ago brian clean slate 532 bytes Diff Download File
bug19371.frm 1 16 years ago brian clean slate 8.3 KB Diff Download File
bug19371.MYD 1 16 years ago brian clean slate 40 bytes Diff Download File
bug19371.MYI 1 16 years ago brian clean slate 1 KB Diff Download File
bug30435_10k_items.txt 1 16 years ago brian clean slate 47.7 KB Diff Download File
bug30435_5k.txt 1 16 years ago brian clean slate 23.3 KB Diff Download File
bug30938.frm 1 16 years ago brian clean slate 8.7 KB Diff Download File
bug33029-slave-relay-bin.000001 1 16 years ago brian clean slate 3.8 KB Diff Download File
bug35469.dat 1 16 years ago brian clean slate 45 bytes Diff Download File
cacert.pem 1 16 years ago brian clean slate 989 bytes Diff Download File
client-cert.pem 1 16 years ago brian clean slate 2 KB Diff Download File
client-key.pem 1 16 years ago brian clean slate 493 bytes Diff Download File
corrupt-relay-bin.000624 1 16 years ago brian clean slate 89.2 KB Diff Download File
des_key_file 1 16 years ago brian clean slate 55 bytes Diff Download File
Index.xml 1 16 years ago brian clean slate 2.2 KB Diff Download File
init_file.dat 1 16 years ago brian clean slate 1 KB Diff Download File
loaddata1.dat 1 16 years ago brian clean slate 56 bytes Diff Download File
loaddata2.dat 1 16 years ago brian clean slate 95 bytes Diff Download File
loaddata3.dat 1 16 years ago brian clean slate 210 bytes Diff Download File
loaddata4.dat 1 16 years ago brian clean slate 85 bytes Diff Download File
loaddata5.dat 1 16 years ago brian clean slate 69 bytes Diff Download File
loaddata6.dat 1 16 years ago brian clean slate 2 bytes Diff Download File
loaddata_dq.dat 1 16 years ago brian clean slate 46 bytes Diff Download File
loaddata_pair.dat 1 16 years ago brian clean slate 20 bytes Diff Download File
loadxml.dat 1 16 years ago brian clean slate 1.4 KB Diff Download File
master-bin.000001 1 16 years ago brian clean slate 98 bytes Diff Download File
Moscow_leap 1 16 years ago brian clean slate 991 bytes Diff Download File
null_test.txt 685.4.1 15 years ago Jay Pipes Enabled the null.test. * Fixed numerous SQL synta 12 bytes Diff Download File
old_table-323.frm 1 16 years ago brian clean slate 8.4 KB Diff Download File
rpl_loaddata.dat 1 16 years ago brian clean slate 12 bytes Diff Download File
rpl_loaddata2.dat 1 16 years ago brian clean slate 140 bytes Diff Download File
rpl_timezone.dat 1 16 years ago brian clean slate 30 bytes Diff Download File
rpl_timezone2.dat 1 16 years ago brian clean slate 40 bytes Diff Download File
server-cert-des.pem 1 16 years ago brian clean slate 956 bytes Diff Download File
server-cert.pem 1 16 years ago brian clean slate 2.1 KB Diff Download File
server-key-des.pem 1 16 years ago brian clean slate 963 bytes Diff Download File
server-key.pem 1 16 years ago brian clean slate 493 bytes Diff Download File
server8k-cert.pem 1 16 years ago brian clean slate 3.1 KB Diff Download File
server8k-key.pem 1 16 years ago brian clean slate 6.2 KB Diff Download File
trunc_binlog.000001 1 16 years ago brian clean slate 174 bytes Diff Download File
untrusted-cacert.pem 1 16 years ago brian clean slate 2.7 KB Diff Download File
vchar.frm 1 16 years ago brian clean slate 8.4 KB Diff Download File
warnings_loaddata.dat 1 16 years ago brian clean slate 211 bytes Diff Download File
words.dat 1 16 years ago brian clean slate 581 bytes Diff Download File
words2.dat 1 16 years ago brian clean slate 419 bytes Diff Download File