On Mon, Feb 13, 2006 at 12:16:35PM +0100, Hartmut Goebel wrote:
> class Device(SQLObject):
> class sqlmeta:
> fromDatabase = 1
> table = 'Device'
>
> Device.sqlmeta.columns looks fine:
>
> {'deviceID': <SOCol deviceID default=None not null>,
> 'sysName': <SOStringCol sysName default=None>}
>
> But trying to access a row, yields an error:
> "Unknown column 'Device.sys_name' in 'field list'"
>
> How to fix this?
class Device(SQLObject):
class sqlmeta:
table = 'Device'
sysName = StringCol(dbName="sysName", default=None)
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss