polardbxengine/mysql-test/suite/x/r/crud_resultset_metadata.result

29 lines
1010 B
Plaintext

DROP SCHEMA IF EXISTS xtest;
Warnings:
Note 1008 Can't drop database 'xtest'; database doesn't exist
CREATE SCHEMA xtest;
CREATE TABLE xtest.xtable (x INT AUTO_INCREMENT PRIMARY KEY, y VARCHAR(1) NOT NULL, z INT UNSIGNED UNIQUE);
INSERT INTO xtest.xtable VALUES (1,2,3);
CREATE TABLE xtest.ytable (a INT ZEROFILL, b TIMESTAMP, c FLOAT UNSIGNED, INDEX(a));
Warnings:
Warning 1681 The ZEROFILL attribute is deprecated and will be removed in a future release. Use the LPAD function to zero-pad numbers, or store the formatted numbers in a CHAR column.
Warning 1681 UNSIGNED for decimal and floating point data types is deprecated and support for it will be removed in a future release.
INSERT INTO xtest.ytable VALUES (1,'2015-02-15',3);
x y z
1 2 3
x:SINT: NOT_NULL PRIMARY_KEY AUTO_INCREMENT
y:BYTES: NOT_NULL
z:UINT: UNIQUE_KEY
command ok
a b c
1 2015-02-15 00:00:00 3
a:UINT: ZEROFILL MULTIPLE_KEY
b:DATETIME: TIMESTAMP
c:FLOAT: UNSIGNED
command ok
Mysqlx.Ok {
msg: "bye!"
}
ok
DROP SCHEMA IF EXISTS xtest;