~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
..
extra 1 16 years ago brian clean slate Diff
include 1 16 years ago brian clean slate Diff
lib 1 16 years ago brian clean slate Diff
misc 1 16 years ago brian clean slate Diff
r 656.2.1 15 years ago Monty Taylor Moved non-working tests into broken suite for easi Diff
std_data 1 16 years ago brian clean slate Diff
suite 1 16 years ago brian clean slate Diff
t 656.2.1 15 years ago Monty Taylor Moved non-working tests into broken suite for easi Diff
File create-test-result 1 16 years ago brian clean slate 1.4 KB Diff Download File
File fix-result 1 16 years ago brian clean slate 535 bytes Diff Download File
install_test_db.in 77.1.32 16 years ago Monty Taylor Merged from trunk. Moved resolve_stack_dump to my 2.5 KB Diff Download File
Makefile.am 656.1.21 15 years ago Monty Taylor Hooked test-suite into make check. 4.7 KB Diff Download File
purify.supp 1 16 years ago brian clean slate 724 bytes Diff Download File
README 1 16 years ago brian clean slate 2.7 KB Diff Download File
README.gcov 1 16 years ago brian clean slate 655 bytes Diff Download File
README.stress 1 16 years ago brian clean slate 4.4 KB Diff Download File
File resolve-stack 54.1.4 16 years ago Stewart Smith merge from mainline 320 bytes Diff Download File
resolve_stack_dump.cc 660.1.3 15 years ago Eric Herman removed trailing whitespace with simple script: f 7.4 KB Diff Download File
stress-test.pl 383.1.22 16 years ago Brian Aker Cleanup around SAFEMALLOC 31.6 KB Diff Download File
File test-run.pl 656.1.43 15 years ago Monty Taylor Quick fix to lower the innodb_lock_wait_timeout so 99.4 KB Diff Download File
valgrind.supp 1 16 years ago brian clean slate 7.7 KB Diff Download File