mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
235 lines
2.5 KiB
Text
235 lines
2.5 KiB
Text
|
stop slave;
|
||
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||
|
reset master;
|
||
|
reset slave;
|
||
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||
|
start slave;
|
||
|
DROP PROCEDURE IF EXISTS test.p1;
|
||
|
DROP TABLE IF EXISTS test.t1;
|
||
|
CREATE TABLE test.t1 (a INT, blob_column LONGBLOB, PRIMARY KEY(a));
|
||
|
INSERT INTO test.t1 VALUES(1,'test');
|
||
|
UPDATE test.t1 SET blob_column=LOAD_FILE('../../std_data/words2.dat') WHERE a=1;
|
||
|
create procedure test.p1()
|
||
|
begin
|
||
|
INSERT INTO test.t1 VALUES(2,'test');
|
||
|
UPDATE test.t1 SET blob_column=LOAD_FILE('../../std_data/words2.dat') WHERE a=2;
|
||
|
end|
|
||
|
CALL test.p1();
|
||
|
SELECT * FROM test.t1;
|
||
|
a blob_column
|
||
|
1 abase
|
||
|
abased
|
||
|
abasement
|
||
|
abasements
|
||
|
abases
|
||
|
abash
|
||
|
abashed
|
||
|
abashes
|
||
|
abashing
|
||
|
abasing
|
||
|
abate
|
||
|
abated
|
||
|
abatement
|
||
|
abatements
|
||
|
abater
|
||
|
abates
|
||
|
abating
|
||
|
Abba
|
||
|
abbe
|
||
|
abbey
|
||
|
abbeys
|
||
|
abbot
|
||
|
abbots
|
||
|
Abbott
|
||
|
abbreviate
|
||
|
abbreviated
|
||
|
abbreviates
|
||
|
abbreviating
|
||
|
abbreviation
|
||
|
abbreviations
|
||
|
Abby
|
||
|
abdomen
|
||
|
abdomens
|
||
|
abdominal
|
||
|
abduct
|
||
|
abducted
|
||
|
abduction
|
||
|
abductions
|
||
|
abductor
|
||
|
abductors
|
||
|
abducts
|
||
|
Abe
|
||
|
abed
|
||
|
Abel
|
||
|
Abelian
|
||
|
Abelson
|
||
|
Aberdeen
|
||
|
Abernathy
|
||
|
aberrant
|
||
|
aberration
|
||
|
|
||
|
2 abase
|
||
|
abased
|
||
|
abasement
|
||
|
abasements
|
||
|
abases
|
||
|
abash
|
||
|
abashed
|
||
|
abashes
|
||
|
abashing
|
||
|
abasing
|
||
|
abate
|
||
|
abated
|
||
|
abatement
|
||
|
abatements
|
||
|
abater
|
||
|
abates
|
||
|
abating
|
||
|
Abba
|
||
|
abbe
|
||
|
abbey
|
||
|
abbeys
|
||
|
abbot
|
||
|
abbots
|
||
|
Abbott
|
||
|
abbreviate
|
||
|
abbreviated
|
||
|
abbreviates
|
||
|
abbreviating
|
||
|
abbreviation
|
||
|
abbreviations
|
||
|
Abby
|
||
|
abdomen
|
||
|
abdomens
|
||
|
abdominal
|
||
|
abduct
|
||
|
abducted
|
||
|
abduction
|
||
|
abductions
|
||
|
abductor
|
||
|
abductors
|
||
|
abducts
|
||
|
Abe
|
||
|
abed
|
||
|
Abel
|
||
|
Abelian
|
||
|
Abelson
|
||
|
Aberdeen
|
||
|
Abernathy
|
||
|
aberrant
|
||
|
aberration
|
||
|
|
||
|
SHOW CREATE TABLE test.t1;
|
||
|
Table Create Table
|
||
|
t1 CREATE TABLE `t1` (
|
||
|
`a` int(11) NOT NULL default '0',
|
||
|
`blob_column` longblob,
|
||
|
PRIMARY KEY (`a`)
|
||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||
|
SELECT * FROM test.t1;
|
||
|
a blob_column
|
||
|
1 abase
|
||
|
abased
|
||
|
abasement
|
||
|
abasements
|
||
|
abases
|
||
|
abash
|
||
|
abashed
|
||
|
abashes
|
||
|
abashing
|
||
|
abasing
|
||
|
abate
|
||
|
abated
|
||
|
abatement
|
||
|
abatements
|
||
|
abater
|
||
|
abates
|
||
|
abating
|
||
|
Abba
|
||
|
abbe
|
||
|
abbey
|
||
|
abbeys
|
||
|
abbot
|
||
|
abbots
|
||
|
Abbott
|
||
|
abbreviate
|
||
|
abbreviated
|
||
|
abbreviates
|
||
|
abbreviating
|
||
|
abbreviation
|
||
|
abbreviations
|
||
|
Abby
|
||
|
abdomen
|
||
|
abdomens
|
||
|
abdominal
|
||
|
abduct
|
||
|
abducted
|
||
|
abduction
|
||
|
abductions
|
||
|
abductor
|
||
|
abductors
|
||
|
abducts
|
||
|
Abe
|
||
|
abed
|
||
|
Abel
|
||
|
Abelian
|
||
|
Abelson
|
||
|
Aberdeen
|
||
|
Abernathy
|
||
|
aberrant
|
||
|
aberration
|
||
|
|
||
|
2 abase
|
||
|
abased
|
||
|
abasement
|
||
|
abasements
|
||
|
abases
|
||
|
abash
|
||
|
abashed
|
||
|
abashes
|
||
|
abashing
|
||
|
abasing
|
||
|
abate
|
||
|
abated
|
||
|
abatement
|
||
|
abatements
|
||
|
abater
|
||
|
abates
|
||
|
abating
|
||
|
Abba
|
||
|
abbe
|
||
|
abbey
|
||
|
abbeys
|
||
|
abbot
|
||
|
abbots
|
||
|
Abbott
|
||
|
abbreviate
|
||
|
abbreviated
|
||
|
abbreviates
|
||
|
abbreviating
|
||
|
abbreviation
|
||
|
abbreviations
|
||
|
Abby
|
||
|
abdomen
|
||
|
abdomens
|
||
|
abdominal
|
||
|
abduct
|
||
|
abducted
|
||
|
abduction
|
||
|
abductions
|
||
|
abductor
|
||
|
abductors
|
||
|
abducts
|
||
|
Abe
|
||
|
abed
|
||
|
Abel
|
||
|
Abelian
|
||
|
Abelson
|
||
|
Aberdeen
|
||
|
Abernathy
|
||
|
aberrant
|
||
|
aberration
|
||
|
|
||
|
DROP PROCEDURE IF EXISTS test.p1;
|
||
|
DROP TABLE test.t1;
|