diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-08-09 21:01:50 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-08-09 21:01:50 +0000 |
commit | 72b02cc09364da3f7be9e2cac5e2fb5db4222a2d (patch) | |
tree | b49b82a2a1c356b25fb3c9b93f0209fbf0927e07 /lib/sqlalchemy/databases/mysql.py | |
parent | b0253eb9b5eca87fde3f9341e403985e1dcf74c4 (diff) | |
download | sqlalchemy-72b02cc09364da3f7be9e2cac5e2fb5db4222a2d.tar.gz |
Added 'unformat_identifiers', produces a list of unquoted identifiers from an identifier or a fully qualified identifier string.
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 766748c62..0b9ab3531 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -1799,6 +1799,9 @@ class MySQLIdentifierPreparer(ansisql.ANSIIdentifierPreparer): def _escape_identifier(self, value): return value.replace('`', '``') + def _unescape_identifier(self, value): + return value.replace('``', '`') + def _fold_identifier_case(self, value): # TODO: determine MySQL's case folding rules # |