mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
This commit is contained in:
@@ -29,7 +29,7 @@ col2 varchar(30) not null,
|
||||
col3 varchar (20) not null,
|
||||
col4 varchar(4) not null,
|
||||
col5 enum('PENDING', 'ACTIVE', 'DISABLED') not null,
|
||||
col6 int not null, to_be_deleted int);
|
||||
col6 int not null, to_be_deleted int) ENGINE=ndbcluster;
|
||||
insert into t1 values (2,4,3,5,"PENDING",1,7);
|
||||
alter table t1
|
||||
add column col4_5 varchar(20) not null after col4,
|
||||
|
@@ -21,13 +21,13 @@ CREATE TABLE t1 (
|
||||
|
||||
INSERT INTO t1 VALUES (9410,9412, NULL, '9412'), (9411,9413, 17, '9413');
|
||||
|
||||
SELECT pk1 FROM t1;
|
||||
SELECT * FROM t1;
|
||||
SELECT t1.* FROM t1;
|
||||
SELECT pk1 FROM t1 ORDER BY pk1;
|
||||
SELECT * FROM t1 ORDER BY pk1;
|
||||
SELECT t1.* FROM t1 ORDER BY pk1;
|
||||
|
||||
# Update on record by primary key
|
||||
UPDATE t1 SET attr1=1 WHERE pk1=9410;
|
||||
SELECT * FROM t1;
|
||||
SELECT * FROM t1 ORDER BY pk1;
|
||||
|
||||
# Update primary key
|
||||
UPDATE t1 SET pk1=2 WHERE attr1=1;
|
||||
@@ -85,9 +85,10 @@ UPDATE t1 SET id=1234 WHERE id2=7890;
|
||||
SELECT * FROM t1;
|
||||
DELETE FROM t1;
|
||||
|
||||
INSERT INTO t1 values(3456, 7890), (3456, 7890), (3456, 7890);
|
||||
SELECT * FROM t1;
|
||||
INSERT INTO t1 values(3456, 7890), (3456, 7890), (3456, 7890), (3454, 7890);
|
||||
SELECT * FROM t1 ORDER BY id;
|
||||
DELETE FROM t1 WHERE id = 3456;
|
||||
SELECT * FROM t1 ORDER BY id;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
|
@@ -25,10 +25,13 @@ connection con2;
|
||||
select * from t1 order by x;
|
||||
|
||||
connection con1;
|
||||
start transaction; insert into t1 values (3,'three');
|
||||
start transaction;
|
||||
insert into t1 values (3,'three');
|
||||
select * from t1 order by x;
|
||||
|
||||
connection con2;
|
||||
start transaction; select * from t1 order by x;
|
||||
start transaction;
|
||||
select * from t1 order by x;
|
||||
|
||||
connection con1;
|
||||
commit;
|
||||
|
Reference in New Issue
Block a user