1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

SQL: default NULL for sys fields + misc fixes

* sys fields are NULL by default (with exceptions, see comment about NOT_NULL_FLAG in #77);
* error codes renamed, messages cleared out;
* SHOW CREATE TABLE fixed;
* set_max() fix;
* redundant flag setters/getters removed;
* flags are set in sql_yacc.yy, redundant copy_info_about_generated_fields() eliminated.
This commit is contained in:
Aleksey Midenkov
2016-11-20 18:17:28 +00:00
parent b98f09fcbf
commit a1c36f2e15
17 changed files with 77 additions and 147 deletions

View File

@ -188,9 +188,9 @@ x y sys_end
1002 2002 2038-01-19 03:14:07.000000
3001 4001 2038-01-19 03:14:07.000000
insert into t1(x, y, sys_end) values(8001, 9001, '2015-1-1 1:1:1');
ERROR HY000: Generated field for System Versioning cannot be set by user
ERROR HY000: System field `sys_end` is read-only
insert into vt1_2 values(3002, 4002, '2015-2-2 2:2:2');
ERROR HY000: Generated field for System Versioning cannot be set by user
ERROR HY000: System field `sys_end` is read-only
drop table t1;
drop view vt1_1;
drop view vt1_2;
@ -211,9 +211,9 @@ x y vtq_commit_ts(sys_end)
1002 2002 2038-01-19 03:14:07.000000
3001 4001 2038-01-19 03:14:07.000000
insert into t1(x, y, sys_end) values(8001, 9001, 1111111);
ERROR HY000: Generated field for System Versioning cannot be set by user
ERROR HY000: System field `sys_end` is read-only
insert into vt1_2 values(3002, 4002, 2222222);
ERROR HY000: Generated field for System Versioning cannot be set by user
ERROR HY000: System field `sys_end` is read-only
drop table t1;
drop view vt1_1;
drop view vt1_2;