From 014e9128546a0c32cdd90ad5ccdcc21269987ee0 Mon Sep 17 00:00:00 2001 From: Diana Clarke Date: Mon, 19 Nov 2012 23:29:08 -0500 Subject: juts a 'expected 2 blank lines' pep8 pass --- lib/sqlalchemy/dialects/informix/base.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/sqlalchemy/dialects/informix/base.py') 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 -- cgit v1.2.1