mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
WL#1266 "Separate auto-set logic from TIMESTAMP type."
Final version of patch. Adds support for specifying of DEFAULT NOW() and/or ON UPDATE NOW() clauses for TIMESTAMP field definition. Current implementation allows only one such field per table and uses several unireg types for storing info about this properties of field. It should be replaced with better implementation when new .frm format is introduced.
This commit is contained in:
@@ -48,6 +48,16 @@ create table `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
--error 1059
|
||||
create table a (`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` int);
|
||||
|
||||
#
|
||||
# Some wrong defaults, so these creates should fail too
|
||||
#
|
||||
--error 1067
|
||||
create table test (a datetime default now());
|
||||
--error 1294
|
||||
create table test (a datetime on update now());
|
||||
--error 1067
|
||||
create table test (a int default 100 auto_increment);
|
||||
|
||||
#
|
||||
# test of dummy table names
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user