fixed keyed table issue, thanks Denes

This commit is contained in:
mdipierro
2013-02-22 10:18:59 -06:00
parent 5d9fc2e9af
commit b64bf54f3e
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.4.1-alpha.2+timestamp.2013.02.21.10.20.58
Version 2.4.1-alpha.2+timestamp.2013.02.22.10.18.20

View File

@@ -792,7 +792,7 @@ class BaseAdapter(ConnectionPool):
rtable = db[rtablename]
rfield = rtable[rfieldname]
# must be PK reference or unique
if rfieldname in hasattr(rtable,'_primarykey') or \
if rfieldname in rtable._primarykey or \
rfield.unique:
ftype = types[rfield.type[:9]] % \
dict(length=rfield.length)