mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
compile-time deprecation reminders
remove old deprecation helpers that were not used anywhere. create new deprecation helpers and enforce their usage this also removes inconsistencies in reporting deprecation: sometimes it was ER_WARN_DEPRECATED_SYNTAX (1287), sometimes ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT (1681), sometimes a warning, sometimes a note. it should always be * ER_WARN_DEPRECATED_SYNTAX * a warning (because it's something actionable, not purely informational)
This commit is contained in:
@ -5,21 +5,21 @@ SELECT CHAR_LENGTH(DES_ENCRYPT(0, CHAR('1' USING ucs2)));
|
||||
CHAR_LENGTH(DES_ENCRYPT(0, CHAR('1' USING ucs2)))
|
||||
9
|
||||
Warnings:
|
||||
Note 1287 'des_encrypt' is deprecated and will be removed in a future release
|
||||
Warning 1287 'des_encrypt' is deprecated and will be removed in a future release
|
||||
SELECT CONVERT(DES_ENCRYPT(0, CHAR('1' USING ucs2)),UNSIGNED);
|
||||
CONVERT(DES_ENCRYPT(0, CHAR('1' USING ucs2)),UNSIGNED)
|
||||
0
|
||||
Warnings:
|
||||
Note 1287 'des_encrypt' is deprecated and will be removed in a future release
|
||||
Warning 1287 'des_encrypt' is deprecated and will be removed in a future release
|
||||
Warning 1292 Truncated incorrect INTEGER value: '\xFFT\xDCiK\x92j\xE6\xFC'
|
||||
SELECT CHAR_LENGTH(DES_DECRYPT(0xFF0DC9FC9537CA75F4, CHAR('1' USING ucs2))) as a;
|
||||
a
|
||||
4
|
||||
Warnings:
|
||||
Note 1287 'des_decrypt' is deprecated and will be removed in a future release
|
||||
Warning 1287 'des_decrypt' is deprecated and will be removed in a future release
|
||||
SELECT CONVERT(DES_DECRYPT(0xFF0DC9FC9537CA75F4, CHAR('1' using ucs2)), UNSIGNED) as a;
|
||||
a
|
||||
0
|
||||
Warnings:
|
||||
Note 1287 'des_decrypt' is deprecated and will be removed in a future release
|
||||
Warning 1287 'des_decrypt' is deprecated and will be removed in a future release
|
||||
Warning 1292 Truncated incorrect INTEGER value: 'test'
|
||||
|
Reference in New Issue
Block a user