Skip to content

Commit 6c48d6c

Browse files
authored
Boost 1.86 new server error codes
close #304
1 parent f4ed0b9 commit 6c48d6c

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

include/boost/mysql/impl/internal/error/server_error_to_string.ipp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,6 +1849,7 @@ const char* boost::mysql::detail::mysql_error_to_string(int v)
18491849
case 4163: return "er_user_lock_overlong_name";
18501850
case 4164: return "er_warn_no_space_version_comment";
18511851
case 4165: return "er_validate_password_insufficient_changed_characters";
1852+
case 4166: return "er_warn_deprecated_with_note";
18521853

18531854
default: return "<unknown MySQL-specific server error>";
18541855
}

include/boost/mysql/mysql_server_errc.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2814,6 +2814,9 @@ BOOST_INLINE_CONSTEXPR int er_warn_no_space_version_comment = 4164;
28142814
/// Server error specific to mysql. Error number: 4165, symbol: ER_VALIDATE_PASSWORD_INSUFFICIENT_CHANGED_CHARACTERS.
28152815
BOOST_INLINE_CONSTEXPR int er_validate_password_insufficient_changed_characters = 4165;
28162816

2817+
/// Server error specific to mysql. Error number: 4166, symbol: ER_WARN_DEPRECATED_WITH_NOTE.
2818+
BOOST_INLINE_CONSTEXPR int er_warn_deprecated_with_note = 4166;
2819+
28172820
} // namespace mysql_server_errc
28182821

28192822
} // namespace mysql

tools/error_codes.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2096,6 +2096,7 @@ numbr,symbol,category
20962096
4165,ER_GALERA_REPLICATION_NOT_SUPPORTED,mariadb
20972097
4165,ER_VALIDATE_PASSWORD_INSUFFICIENT_CHANGED_CHARACTERS,mysql
20982098
4166,ER_LOAD_INFILE_CAPABILITY_DISABLED,mariadb
2099+
4166,ER_WARN_DEPRECATED_WITH_NOTE,mysql
20992100
4167,ER_NO_SECURE_TRANSPORTS_CONFIGURED,mariadb
21002101
4168,ER_SLAVE_IGNORED_SHARED_TABLE,mariadb
21012102
4169,ER_NO_AUTOINCREMENT_WITH_UNIQUE,mariadb

tools/scripts/server_errors.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
# MySQL and MariaDB often rename, deprecate, etc. codes. To attempt to maintain sanity,
1616
# we generate a CSV file with what we did for the previous version. We load it and combine it
1717
# with the new errors, and we only perform backwards-compatible changes.
18+
#
19+
# To update the codes for a new release:
20+
# - MySQL: https://dev.mysql.com/downloads/mysql/
21+
# - MariaDB: https://mariadb.org/connector-c/all-releases/
1822

1923
import pandas as pd
2024
from os import path
@@ -371,7 +375,7 @@ def invoke_file_headers() -> None:
371375

372376
def main():
373377
old_codes = load_csv()
374-
new_codes = parse_headers(REPO_BASE.joinpath('private', 'errors', '1.84'))
378+
new_codes = parse_headers(REPO_BASE.joinpath('private', 'errors', '1.86'))
375379
codes = merge_new_codes(old_codes, new_codes)
376380
write_csv(codes)
377381
write_headers(codes)

0 commit comments

Comments
 (0)