mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb mysql-test/t/disabled.def: Auto merged sql/mysqld.cc: Auto merged sql/set_var.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_parse.cc: Auto merged
This commit is contained in:
@@ -6,13 +6,6 @@ attr1 INT NOT NULL,
|
||||
attr2 INT,
|
||||
attr3 VARCHAR(10)
|
||||
) ENGINE=ndbcluster;
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (
|
||||
pk1 INT NOT NULL PRIMARY KEY,
|
||||
attr1 INT NOT NULL,
|
||||
attr2 INT,
|
||||
attr3 VARCHAR(10)
|
||||
) ENGINE=ndbcluster;
|
||||
SHOW INDEX FROM t1;
|
||||
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
|
||||
t1 0 PRIMARY 1 pk1 A 0 NULL NULL BTREE
|
||||
|
@@ -56,86 +56,90 @@ INSERT INTO test.t1 VALUES (8,1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,4
|
||||
UNLOCK TABLES;
|
||||
UPDATE test.t1 set x034 = 50 where bit3 = b'000000';
|
||||
UPDATE test.t1 set VNotSupp = 33 where bit1 = b'0';
|
||||
SELECT oSupp, sSuppD, GSuppDf, VNotSupp, x034 FROM test.t1;
|
||||
SELECT oSupp, sSuppD, GSuppDf, VNotSupp, x034
|
||||
FROM test.t1
|
||||
ORDER BY oSupp, sSuppD, GSuppDf, VNotSupp, x034;
|
||||
oSupp sSuppD GSuppDf VNotSupp x034
|
||||
5 5 3 NULL 1
|
||||
5 5 3 2 1
|
||||
5 5 3 33 1
|
||||
5 5 3 2 50
|
||||
5 5 3 33 1
|
||||
5 5 3 33 1
|
||||
5 5 3 33 1
|
||||
5 5 3 33 1
|
||||
SELECT hex(bit1) from test.t1;
|
||||
5 5 3 33 1
|
||||
SELECT hex(bit1) from test.t1 ORDER BY bit1;
|
||||
hex(bit1)
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
2A
|
||||
3F
|
||||
3F
|
||||
0
|
||||
2A
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
SELECT hex(bit2) from test.t1;
|
||||
SELECT hex(bit2) from test.t1 ORDER BY bit2;
|
||||
hex(bit2)
|
||||
3E
|
||||
0
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
2A
|
||||
3E
|
||||
3F
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
SELECT hex(bit3) from test.t1;
|
||||
SELECT hex(bit3) from test.t1 ORDER BY bit3;
|
||||
hex(bit3)
|
||||
35
|
||||
24
|
||||
15
|
||||
0
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
SELECT oSupp, sSuppD, GSuppDf, VNotSupp, x034 FROM test.t1;
|
||||
15
|
||||
24
|
||||
35
|
||||
SELECT oSupp, sSuppD, GSuppDf, VNotSupp, x034
|
||||
FROM test.t1
|
||||
ORDER BY oSupp, sSuppD, GSuppDf, VNotSupp, x034;
|
||||
oSupp sSuppD GSuppDf VNotSupp x034
|
||||
5 5 3 NULL 1
|
||||
5 5 3 2 1
|
||||
5 5 3 33 1
|
||||
5 5 3 2 50
|
||||
5 5 3 33 1
|
||||
5 5 3 33 1
|
||||
5 5 3 33 1
|
||||
5 5 3 33 1
|
||||
SELECT hex(bit1) from test.t1;
|
||||
5 5 3 33 1
|
||||
SELECT hex(bit1) from test.t1 ORDER BY bit1;
|
||||
hex(bit1)
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
2A
|
||||
3F
|
||||
3F
|
||||
0
|
||||
2A
|
||||
0
|
||||
0
|
||||
0
|
||||
0
|
||||
SELECT hex(bit2) from test.t1;
|
||||
SELECT hex(bit2) from test.t1 ORDER BY bit2;
|
||||
hex(bit2)
|
||||
3E
|
||||
0
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
2A
|
||||
3E
|
||||
3F
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
SELECT hex(bit3) from test.t1;
|
||||
SELECT hex(bit3) from test.t1 ORDER BY bit3;
|
||||
hex(bit3)
|
||||
35
|
||||
24
|
||||
15
|
||||
0
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
15
|
||||
24
|
||||
35
|
||||
CREATE TABLE test.t2 (a INT, b BIT(1));
|
||||
INSERT INTO test.t2 VALUES (1, b'0');
|
||||
INSERT INTO test.t2 VALUES (1, b'1');
|
||||
@@ -144,19 +148,19 @@ CREATE TABLE test.t3 (a INT, b INT);
|
||||
INSERT INTO test.t3 VALUES (1, NULL);
|
||||
INSERT INTO test.t3 VALUES (1, 0);
|
||||
UPDATE test.t3 SET a = 2 WHERE b = 0;
|
||||
SELECT a, hex(b) FROM test.t2;
|
||||
SELECT a, hex(b) FROM test.t2 ORDER BY a,b;
|
||||
a hex(b)
|
||||
1 0
|
||||
2 1
|
||||
SELECT * FROM test.t3;
|
||||
SELECT * FROM test.t3 ORDER BY a,b;
|
||||
a b
|
||||
1 NULL
|
||||
2 0
|
||||
SELECT a, hex(b) FROM test.t2;
|
||||
SELECT a, hex(b) FROM test.t2 ORDER BY a,b;
|
||||
a hex(b)
|
||||
1 0
|
||||
2 1
|
||||
SELECT * FROM test.t3;
|
||||
SELECT * FROM test.t3 ORDER BY a,b;
|
||||
a b
|
||||
1 NULL
|
||||
2 0
|
||||
|
Reference in New Issue
Block a user