]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added PGBigInteger type
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Oct 2006 19:48:52 +0000 (19:48 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Oct 2006 19:48:52 +0000 (19:48 +0000)
lib/sqlalchemy/databases/postgres.py

index e052fe8c00ed89fbe90712f86f480ce0fee42ca7..914df50f785b84455221ea6d9cea4b7a3c75b521 100644 (file)
@@ -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,