Commits

Mike Bayer  committed 6c585ae

PG didnt like 'user' for a table name

  • Participants
  • Parent commits 0d88743

Comments (0)

Files changed (2)

 __del__() method got called within the Queue's get() method, which 
 then returns its connection to the Queue via the the put() method, 
 causing a reentrant hang unless threading.RLock is used.
+- postgres will not place SERIAL keyword on a primary key column
+if it has a foreign key constraint
 
 0.2.3
 - overhaul to mapper compilation to be deferred.  this allows mappers

File test/orm/inheritance.py

     def setUpAll(self):
         global users, roles, user_roles, admins, metadata
         metadata=BoundMetaData(testbase.db)
-        users = Table('user', metadata,
+        users = Table('users', metadata,
             Column('id', Integer, primary_key=True),
             Column('email', String(128)),
             Column('password', String(16)),
         )
 
         user_roles = Table('user_role', metadata,
-            Column('user_id', Integer, ForeignKey('user.id'), primary_key=True),
+            Column('user_id', Integer, ForeignKey('users.id'), primary_key=True),
             Column('role_id', Integer, ForeignKey('role.id'), primary_key=True)
         )
 
         admins = Table('admin', metadata,
             Column('id', Integer, primary_key=True),
-            Column('user_id', Integer, ForeignKey('user.id'))
+            Column('user_id', Integer, ForeignKey('users.id'))
         )
         metadata.create_all()
     def tearDownAll(self):