Contact: fumanchu@aminus.org

Log in as guest/geniusql to create tickets

Changeset 252

Show
Ignore:
Timestamp:
11/21/08 02:44:41
Author:
lakin
Message:

Properly autodetct the autoincrement in sqlite

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/geniusql/providers/sqlite.py

    r251 r252  
    763763            # column to autoincrement when you insert NULL. 
    764764            # See http://sqlite.org/faq.html#q1. 
    765             if dbtype is INTEGER and c.key: 
     765            if isinstance(dbtype, INTEGER) and c.key: 
    766766                c.autoincrement = True 
    767767