29 lines
707 B
Plaintext
29 lines
707 B
Plaintext
--source suite/xengine/include/have_xengine.inc
|
|
|
|
#
|
|
# Check whether PASSWORD option
|
|
# is supported in CREATE and ALTER TABLE
|
|
#
|
|
# Note: the test does not check whether the option
|
|
# has any real effect on the table, only
|
|
# that it's accepted
|
|
#
|
|
# This option is not supported by any known engines,
|
|
# that's why the result file does not contain it;
|
|
# but it's syntactically acceptable.
|
|
#
|
|
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS t1;
|
|
--enable_warnings
|
|
|
|
CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=xengine PASSWORD='password';
|
|
SHOW CREATE TABLE t1;
|
|
|
|
ALTER TABLE t1 PASSWORD='new_password';
|
|
SHOW CREATE TABLE t1;
|
|
|
|
DROP TABLE t1;
|
|
|
|
--source suite/xengine/include/check_xengine_log_error.inc
|