]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Added :class:`.BIGINT` to the list of type names that can be
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Jul 2013 22:10:08 +0000 (18:10 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Jul 2013 22:10:08 +0000 (18:10 -0400)
reflected by the SQLite dialect; courtesy Russell Stuart.
[ticket:2764]

doc/build/changelog/changelog_08.rst
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/dialects/sqlite/base.py
test/dialect/test_sqlite.py

index d25cb8d67680fe669047adfd9555ab4f01a0b8f0..f4dd923d6e743aa1ebe950db07fd8132723b5fde 100644 (file)
@@ -6,6 +6,13 @@
 .. changelog::
     :version: 0.8.2
 
+    .. change::
+        :tags: bug, sqlite
+        :tickets: 2764
+
+        Added :class:`.BIGINT` to the list of type names that can be
+        reflected by the SQLite dialect; courtesy Russell Stuart.
+
     .. change::
         :tags: feature, orm, declarative
         :tickets: 2761
index d86510e73f9c1c660bc35f4bc574aab82ab02fc4..ba39a917569b652a622399f76de1a331eb32a676 100644 (file)
@@ -6,6 +6,14 @@
 .. changelog::
     :version: 0.9.0
 
+    .. change::
+        :tags: bug, sqlite
+        :tickets: 2764
+
+        Added :class:`.BIGINT` to the list of type names that can be
+        reflected by the SQLite dialect; courtesy Russell Stuart.
+        Also in 0.8.2.
+
     .. change::
         :tags: feature, orm, declarative
         :tickets: 2761
index 787fdec175db07ab3ec43e361b28363b51a67df5..a9a81394f87d61682acf1fcbda2ebd054d1431b3 100644 (file)
@@ -137,8 +137,9 @@ from sqlalchemy import util
 from sqlalchemy.sql import compiler
 from sqlalchemy import processors
 
-from sqlalchemy.types import BLOB, BOOLEAN, CHAR, DATE, DATETIME, DECIMAL,\
-    FLOAT, REAL, INTEGER, NUMERIC, SMALLINT, TEXT, TIME, TIMESTAMP, VARCHAR
+from sqlalchemy.types import BIGINT, BLOB, BOOLEAN, CHAR,\
+    DECIMAL, FLOAT, REAL, INTEGER, NUMERIC, SMALLINT, TEXT,\
+    TIMESTAMP, VARCHAR
 
 
 class _DateTimeMixin(object):
@@ -384,6 +385,7 @@ colspecs = {
 }
 
 ischema_names = {
+    'BIGINT': sqltypes.BIGINT,
     'BLOB': sqltypes.BLOB,
     'BOOL': sqltypes.BOOLEAN,
     'BOOLEAN': sqltypes.BOOLEAN,
index 4ede13ff63a76d6abcfeb58b78bbbba16c6a47fb..d75211a7146257a8aefd8cc287f532ab3816edd4 100644 (file)
@@ -9,7 +9,7 @@ from sqlalchemy import Table, String, select, Text, CHAR, bindparam, Column,\
     Unicode, Date, MetaData, UnicodeText, Time, Integer, TIMESTAMP, \
     Boolean, func, NUMERIC, DateTime, extract, ForeignKey, text, Numeric,\
     DefaultClause, and_, DECIMAL, TypeDecorator, create_engine, Float, \
-    INTEGER, UniqueConstraint, DATETIME, DATE, TIME, BOOLEAN
+    INTEGER, UniqueConstraint, DATETIME, DATE, TIME, BOOLEAN, BIGINT
 from sqlalchemy.util import u, ue
 from sqlalchemy import exc, sql, schema, pool, types as sqltypes, util
 from sqlalchemy.dialects.sqlite import base as sqlite, \
@@ -137,6 +137,8 @@ class TestTypes(fixtures.TestBase, AssertsExecutionResults):
             (Numeric(10, 2), NUMERIC(10, 2)),
             (DECIMAL, DECIMAL()),
             (DECIMAL(10, 2), DECIMAL(10, 2)),
+            (INTEGER, INTEGER()),
+            (BIGINT, BIGINT()),
             (Float, Float()),
             (NUMERIC(), ),
             (TIMESTAMP, TIMESTAMP()),