mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
fb67cde237
- Force usage of () around complex DEFAULT expressions - Give error if DEFAULT expression contains invalid characters - Don't use const_charset_conversion for stored Item_func_sysconf expressions as the result is not constaint over different executions - Fixed Item_func_user() to not store calculated value in str_value
19 lines
492 B
Text
19 lines
492 B
Text
include/master-slave.inc
|
|
[connection master]
|
|
connection master;
|
|
create table t1 (a int DEFAULT (1+1), b bigint default uuid_short(), u blob default user());
|
|
insert into t1 (a) values(1);
|
|
connection slave;
|
|
connection slave;
|
|
show create table t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`a` int(11) DEFAULT (1+1),
|
|
`b` bigint(20) DEFAULT uuid_short(),
|
|
`u` blob DEFAULT user()
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
a uuid user
|
|
1 1 1
|
|
connection master;
|
|
drop table t1;
|
|
include/rpl_end.inc
|