mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#12518
"COLUMN_DEFAULT has wrong value if NOT NULL is set" Show NULL instead of empty string when no default value is set mysql-test/r/information_schema.result: test for bug 12518 mysql-test/t/information_schema.test: test for bug 12518 sql/sql_show.cc: report NULL for information schema result when there is no default value
This commit is contained in:
@ -958,3 +958,12 @@ trigger_schema trigger_name
|
||||
test tr1
|
||||
use test;
|
||||
drop table t1;
|
||||
create table t1 (a int not null, b int);
|
||||
use information_schema;
|
||||
select column_name, column_default from columns
|
||||
where table_schema='test' and table_name='t1';
|
||||
column_name column_default
|
||||
a NULL
|
||||
b NULL
|
||||
use test;
|
||||
drop table t1;
|
||||
|
@ -639,3 +639,13 @@ select trigger_schema, trigger_name from triggers where
|
||||
trigger_name='tr1';
|
||||
use test;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug#12518 COLUMN_DEFAULT has wrong value if NOT NULL is set
|
||||
#
|
||||
create table t1 (a int not null, b int);
|
||||
use information_schema;
|
||||
select column_name, column_default from columns
|
||||
where table_schema='test' and table_name='t1';
|
||||
use test;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user