[orm-devel] select problem

Werner F. Bruhin orm-devel@mailman.tux4web.de
Fri Feb 28 12:54:53 CET 2003


I am having a problem trying to do a select:

w2 = ds.selectByPrimaryKey(test, 45)

debug output is: SELECT test.id,test.winename FROM test WHERE id=45

getting this error:

  File "test_firebird.py", line 61, in ?
    w2 = ds.selectByPrimaryKey(test, 45)
  File "C:\Python22\lib\site-packages\orm\datasource.py", line 330, in 
selectByPrimaryKey
    raise IllegalPrimaryKey("%s in %s" % (fmt, dbclass.__name__))

I now that 45 exists and is a valid key in the DB, but ORM does not like it.

The class definition is the one from test_firebird.py.

Any hints/help would be appreciated.

See you
Werner








More information about the orm-devel mailing list