From: Mike Bayer Date: Wed, 11 Oct 2006 19:48:52 +0000 (+0000) Subject: added PGBigInteger type X-Git-Tag: rel_0_3_0~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5cfa86e941f80fa9a727ca8cf9e20614f6cb0fd;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git added PGBigInteger type --- diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py index e052fe8c00..914df50f78 100644 --- a/lib/sqlalchemy/databases/postgres.py +++ b/lib/sqlalchemy/databases/postgres.py @@ -44,6 +44,9 @@ class PGInteger(sqltypes.Integer): class PGSmallInteger(sqltypes.Smallinteger): def get_col_spec(self): return "SMALLINT" +class PGBigInteger(sqltypes.Integer): + def get_col_spec(self): + return "BIGINT" class PG2DateTime(sqltypes.DateTime): def get_col_spec(self): return "TIMESTAMP " + (self.timezone and "WITH" or "WITHOUT") + " TIME ZONE" @@ -144,7 +147,7 @@ pg1_colspecs.update({ pg2_ischema_names = { 'integer' : PGInteger, - 'bigint' : PGInteger, + 'bigint' : PGBigInteger, 'smallint' : PGSmallInteger, 'character varying' : PGString, 'character' : PGChar,