8000 Support MariaDB's CHECK constraint error by methane · Pull Request #627 · PyMySQL/PyMySQL · GitHub
[go: up one dir, main page]

Skip to content

Support MariaDB's CHECK constraint error #627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Support MariaDB's CHECK constraint error
fixes #607
  • Loading branch information
E649
methane committed Dec 19, 2017
commit fbf4c6898702850fb40e17a0d081a70b1f5b964e
3 changes: 3 additions & 0 deletions pymysql/constants/ER.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,3 +470,6 @@
HOSTNAME = 1467
WRONG_STRING_LENGTH = 1468
ERROR_LAST = 1468

# https://github.com/PyMySQL/PyMySQL/issues/607
CONSTRAINT_FAILED = 4025
2 changes: 1 addition & 1 deletion pymysql/err.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _map_error(exc, *errors):
ER.NOT_SUPPORTED_YET, ER.FEATURE_DISABLED, ER.UNKNOWN_STORAGE_ENGINE)
_map_error(OperationalError, ER.DBACCESS_DENIED_ERROR, ER.ACCESS_DENIED_ERROR,
ER.CON_COUNT_ERROR, ER.TABLEACCESS_DENIED_ERROR,
ER.COLUMNACCESS_DENIED_ERROR)
ER.COLUMNACCESS_DENIED_ERROR, ER.CONSTRAINT_FAILED)


del _map_error, ER
Expand Down
0