mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Fix a typo error in tabutil line 213
modified: storage/connect/tabutil.cpp - Fix test results to reflect the fact that in discovery, column defaults are now retrieved for the MYSQL table type. modified: storage/connect/mysql-test/connect/r/mysql_discovery.result storage/connect/mysql-test/connect/r/mysql_new.result - Restore Unix line endings modified: storage/connect/value.cpp
This commit is contained in:
@@ -13,19 +13,13 @@ SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`id` int(20) NOT NULL,
|
||||
`group` int(11) NOT NULL,
|
||||
`a\\b` int(11) NOT NULL,
|
||||
`group` int(11) NOT NULL DEFAULT '1',
|
||||
`a\\b` int(11) NOT NULL DEFAULT '2',
|
||||
`a\\` int(10) unsigned DEFAULT NULL,
|
||||
`name` varchar(32) DEFAULT NULL
|
||||
`name` varchar(32) DEFAULT 'name'
|
||||
) ENGINE=CONNECT DEFAULT CHARSET=latin1 CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT/test/t1' `TABLE_TYPE`='MYSQL'
|
||||
INSERT INTO t1 (id, name) VALUES (1, 'foo');
|
||||
Warnings:
|
||||
Warning 1364 Field 'group' doesn't have a default value
|
||||
Warning 1364 Field 'a\\b' doesn't have a default value
|
||||
INSERT INTO t1 (id, name) VALUES (2, 'fee');
|
||||
Warnings:
|
||||
Warning 1364 Field 'group' doesn't have a default value
|
||||
Warning 1364 Field 'a\\b' doesn't have a default value
|
||||
SELECT * FROM t1;
|
||||
id group a\\b a\\ name
|
||||
1 1 2 NULL foo
|
||||
|
@@ -204,7 +204,7 @@ t1 CREATE TABLE `t1` (
|
||||
`a` date DEFAULT NULL,
|
||||
`b` datetime DEFAULT NULL,
|
||||
`c` time DEFAULT NULL,
|
||||
`d` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`d` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`e` year(4) DEFAULT NULL
|
||||
) ENGINE=CONNECT DEFAULT CHARSET=latin1 CONNECTION='mysql://root@127.0.0.1:SLAVE_PORT' `TABLE_TYPE`='MYSQL'
|
||||
SELECT * FROM t1;
|
||||
|
@@ -210,7 +210,7 @@ PQRYRES TabColumns(PGLOBAL g, THD *thd, const char *db,
|
||||
len = strlen(fmt);
|
||||
} else {
|
||||
fmt = (char*)fp->option_struct->dateformat;
|
||||
fp->field_length;
|
||||
len = fp->field_length;
|
||||
} // endif mysql
|
||||
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user