diff options
author | monty@mishka.local <> | 2004-09-28 20:08:00 +0300 |
---|---|---|
committer | monty@mishka.local <> | 2004-09-28 20:08:00 +0300 |
commit | f2941380c4e69f55abc0f09c2e0091ea0cdf3c00 (patch) | |
tree | 7f0311baaca32e6242f23dcf0a89ed38e39c9ac0 /include/mysql_com.h | |
parent | 095f7e874087183fdc2fc914708b579175da95f3 (diff) | |
download | mariadb-git-f2941380c4e69f55abc0f09c2e0091ea0cdf3c00.tar.gz |
Strict mode & better warnings
Under strict mode MySQL will generate an error message if there was any conversion when assigning data to a field.
Added checking of date/datetime fields.
If strict mode, give error if we have not given value to field without a default value (for INSERT)
Diffstat (limited to 'include/mysql_com.h')
-rw-r--r-- | include/mysql_com.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mysql_com.h b/include/mysql_com.h index 3cf1a011e3c..16a1581a6c9 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -79,6 +79,7 @@ enum enum_server_command #define AUTO_INCREMENT_FLAG 512 /* field is a autoincrement field */ #define TIMESTAMP_FLAG 1024 /* Field is a timestamp */ #define SET_FLAG 2048 /* field is a set */ +#define NO_DEFAULT_VALUE_FLAG 4096 /* Field doesn't have default value */ #define NUM_FLAG 32768 /* Field is num (for clients) */ #define PART_KEY_FLAG 16384 /* Intern; Part of some key */ #define GROUP_FLAG 32768 /* Intern: Group field */ |