mirror of
https://github.com/MariaDB/server.git
synced 2025-08-26 01:44:06 +03:00
warnings) Before this fix, several places in the code would raise a warning with an error code 0, making it impossible for a stored procedure, a connector, or a client application to trigger logic to handle the warning. Also, the warning text was hard coded, and therefore not translated. With this fix, new errors numbers have been created to represent these warnings, and the warning text is coded in the errmsg.txt file.
31 lines
1023 B
Plaintext
31 lines
1023 B
Plaintext
DROP TABLE IF EXISTS t1;
|
|
CREATE TABLE t1 (
|
|
c1 int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
c2 varchar(30) NOT NULL,
|
|
c3 smallint(5) unsigned DEFAULT NULL,
|
|
PRIMARY KEY (c1)
|
|
) ENGINE = MYISAM
|
|
PARTITION BY HASH(c1)(
|
|
PARTITION p0
|
|
DATA DIRECTORY = 'C:/mysqltest/p0Data'
|
|
INDEX DIRECTORY = 'D:/mysqltest/p0Index',
|
|
PARTITION p1,
|
|
PARTITION p2
|
|
DATA DIRECTORY = 'E:/mysqltest/p2Data'
|
|
INDEX DIRECTORY = 'F:/mysqltest/p2Index'
|
|
);
|
|
Warnings:
|
|
Warning 1616 <DATA DIRECTORY> option ignored
|
|
Warning 1616 <INDEX DIRECTORY> option ignored
|
|
Warning 1616 <DATA DIRECTORY> option ignored
|
|
Warning 1616 <INDEX DIRECTORY> option ignored
|
|
INSERT INTO t1 VALUES (NULL, "first", 1);
|
|
INSERT INTO t1 VALUES (NULL, "second", 2);
|
|
INSERT INTO t1 VALUES (NULL, "third", 3);
|
|
ALTER TABLE t1 ADD PARTITION (PARTITION p3 DATA DIRECTORY = 'G:/mysqltest/p3Data' INDEX DIRECTORY = 'H:/mysqltest/p3Index');
|
|
Warnings:
|
|
Warning 1616 <DATA DIRECTORY> option ignored
|
|
Warning 1616 <INDEX DIRECTORY> option ignored
|
|
INSERT INTO t1 VALUES (NULL, "last", 4);
|
|
DROP TABLE t1;
|