diff options
| author | Diana Clarke <diana.joan.clarke@gmail.com> | 2012-11-19 23:29:08 -0500 |
|---|---|---|
| committer | Diana Clarke <diana.joan.clarke@gmail.com> | 2012-11-19 23:29:08 -0500 |
| commit | 014e9128546a0c32cdd90ad5ccdcc21269987ee0 (patch) | |
| tree | 915a9c89a5d3cd5d914867b3ab628c5f6f33bd8b /lib/sqlalchemy/dialects/informix/base.py | |
| parent | e0dc5ed803de7a57de033c16f2fa0044b59ce374 (diff) | |
| download | sqlalchemy-014e9128546a0c32cdd90ad5ccdcc21269987ee0.tar.gz | |
juts a 'expected 2 blank lines' pep8 pass
Diffstat (limited to 'lib/sqlalchemy/dialects/informix/base.py')
| -rw-r--r-- | lib/sqlalchemy/dialects/informix/base.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/informix/base.py b/lib/sqlalchemy/dialects/informix/base.py index f54bf6d37..ee0d3a831 100644 --- a/lib/sqlalchemy/dialects/informix/base.py +++ b/lib/sqlalchemy/dialects/informix/base.py @@ -144,7 +144,9 @@ RESERVED_WORDS = set( "xadatasource", "xid", "xload", "xunload", "year" ]) + class InfoDateTime(sqltypes.DateTime): + def bind_processor(self, dialect): def process(value): if value is not None: @@ -153,7 +155,9 @@ class InfoDateTime(sqltypes.DateTime): return value return process + class InfoTime(sqltypes.Time): + def bind_processor(self, dialect): def process(value): if value is not None: @@ -217,7 +221,9 @@ class InfoTypeCompiler(compiler.GenericTypeCompiler): def visit_boolean(self, type_): return "SMALLINT" + class InfoSQLCompiler(compiler.SQLCompiler): + def default_from(self): return " from systables where tabname = 'systables' " @@ -337,6 +343,7 @@ class InfoDDLCompiler(compiler.DDLCompiler): text += "CONSTRAINT %s " % self.preparer.format_constraint(constraint) return text + class InformixIdentifierPreparer(compiler.IdentifierPreparer): reserved_words = RESERVED_WORDS |
