quirogaco wrote: > > File "C:\Acappella_2Zero\thirdparty\sqlalchemy\orm\mapper.py", line > 1612, in _ > instance > identitykey = identity_key(row) > File "C:\Acappella_2Zero\thirdparty\sqlalchemy\orm\mapper.py", line > 1553, in i > dentity_key > return (identity_class, tuple(row[column] for column in pk_cols)) > File "C:\Acappella_2Zero\thirdparty\sqlalchemy\orm\mapper.py", line > 1553, in < > genexpr> > return (identity_class, tuple(row[column] for column in pk_cols)) > File "C:\Acappella_2Zero\thirdparty\sqlalchemy\engine\base.py", line > 1348, in > __getitem__ > return self.__parent._get_col(self.__row, key) > File "C:\Acappella_2Zero\thirdparty\sqlalchemy\engine\base.py", line > 1609, in > _get_col > type_, processor, index = self._props[key] > File "C:\Acappella_2Zero\thirdparty\sqlalchemy\util.py", line 68, in > __missing > __ > self[key] = val = self.creator(key) > File "C:\Acappella_2Zero\thirdparty\sqlalchemy\engine\base.py", line > 1507, in > fallback > raise exc.NoSuchColumnError("Could not locate column in row for > column '%s'" > % (str(key))) > sqlalchemy.exc.NoSuchColumnError: "Could not locate column in row for > column 'd_ > users.name'" >
your code example doesn't illustrate this (and is also hard to understand since it uses all kinds of methods to which nobody outside of your organization could be familiar with, such as "Fdb.Unicode(...Adb.Primary_Key(True))") but the stack trace reveals that "name" is considered to be a primary key by the mapper. Primary key columns can't be deferred. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---