diff options
author | Gleb Shchepa <gleb.shchepa@oracle.com> | 2012-06-29 12:55:45 +0400 |
---|---|---|
committer | Gleb Shchepa <gleb.shchepa@oracle.com> | 2012-06-29 12:55:45 +0400 |
commit | 767501fb54f19adf3c136e5131daf11e34b3f039 (patch) | |
tree | 7f5c6c4320c4997d6be1e35c5562c5795a1efc72 /mysql-test/t/type_year.test | |
parent | 07a17e302c816ff0b5f6eb577f3683b6fd3645ea (diff) | |
download | mariadb-git-767501fb54f19adf3c136e5131daf11e34b3f039.tar.gz |
Backport of the deprecation warning from WL#6219: "Deprecate and remove YEAR(2) type"
Print the warning(note):
YEAR(x) is deprecated and will be removed in a future release. Please use YEAR(4) instead
on "CREATE TABLE ... YEAR(x)" or "ALTER TABLE MODIFY ... YEAR(x)", where x != 4
Diffstat (limited to 'mysql-test/t/type_year.test')
-rw-r--r-- | mysql-test/t/type_year.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/type_year.test b/mysql-test/t/type_year.test index 1a9e66478e1..8ba8260cfc4 100644 --- a/mysql-test/t/type_year.test +++ b/mysql-test/t/type_year.test @@ -160,5 +160,13 @@ SELECT COUNT(*) AS total_rows, MIN(c1) AS min_value, MAX(c1) FROM t1; DROP TABLE t1; --echo # +--echo # WL#6219: Deprecate and remove YEAR(2) type +--echo # + +CREATE TABLE t1 (c1 YEAR(2), c2 YEAR(4)); +ALTER TABLE t1 MODIFY COLUMN c2 YEAR(2); +DROP TABLE t1; + +--echo # --echo End of 5.1 tests |