diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-08-10 04:48:00 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-08-10 04:48:00 +0000 |
| commit | c3bdad10a384f779624f015a34ada785ad2dedf5 (patch) | |
| tree | 3c7b7564dd93482cdb63eb205d6f80622f599fba /lib/sqlalchemy/dialects/postgresql | |
| parent | d564baf593311ca5bc62dbc401e57986bf9169ba (diff) | |
| download | sqlalchemy-c3bdad10a384f779624f015a34ada785ad2dedf5.tar.gz | |
- simplify MySQLIdentifierPreparer into standard pattern,
thus allowing easy subclassing
- move % sign logic for MySQLIdentifierPreparer into MySQLdb dialect
- paramterize the escape/unescape quote char in IdentifierPreparer
- cut out MySQLTableDefinitionParser cruft
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql')
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index c89ae16bd..57f2161c1 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -433,6 +433,7 @@ class PGIdentifierPreparer(compiler.IdentifierPreparer): def _escape_identifier(self, value): value = value.replace('"', '""') + # TODO: might want to move this to psycopg2 + pg8000 individually return value.replace('%', '%%') class PGInspector(reflection.Inspector): |
