diff options
author | evgen@moonbone.local <> | 2007-11-13 13:24:48 +0000 |
---|---|---|
committer | evgen@moonbone.local <> | 2007-11-13 13:24:48 +0000 |
commit | 4fa7ee92e6ed958d55b52abdd541842746b3a369 (patch) | |
tree | ee68ba15bd8652e76a5e7234e7ac6b1b360266f1 /include/mysql_com.h | |
parent | 055e3e78ceec218bf9a72206afec5a50c8ce2d23 (diff) | |
download | mariadb-git-4fa7ee92e6ed958d55b52abdd541842746b3a369.tar.gz |
Bug#30081: "ON UPDATE CURRENT_TIMESTAMP" wasn't shown by the SHOW FIELDS
command and reported to a client.
The fact that a timestamp field will be set to NO on UPDATE wasn't shown
by the SHOW COMMAND and reported to a client through connectors. This led to
problems in the ODBC connector and might lead to a user confusion.
A new filed flag called ON_UPDATE_NOW_FLAG is added.
Constructors of the Field_timestamp set it when a field should be set to NOW
on UPDATE.
The get_schema_column_record function now reports whether a timestamp field
will be set to NOW on UPDATE.
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 f76486b9ec2..4ae7f66060f 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -94,6 +94,7 @@ enum enum_server_command #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 ON_UPDATE_NOW_FLAG 8192 /* Field is set to NOW on UPDATE */ #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 */ |