I've got to run, but I'll be happy to try echo when I'm back.  In the meantime, WITH OID was finally turned off by default in 8.1 after much warning -- before then it was on by default for backwards compatibility, including in 8.0.  You're definitely running 8.1?
 
On 12/31/05, Michael Bayer <[EMAIL PROTECTED]> wrote:

On Dec 31, 2005, at 6:39 PM, Jonathan Ellis wrote:

>
> Foo.get(1)
>
> dies complaining of oid absence.  Seems strange that get doesn't
> use a known PK.


also that is weird because there are plenty of get()'s in the unit
tests which I run all the time against postgres, and also I am not
doing anything with that "WITH OID" clause that doc mentions.  is it
postgres giving you the error ?  Id be curious to see what its asking
the DB for, if you turn echo=True on the engine, and also you can add
the keyword argument "order_by=None" to all mapper() functions and it
should stop trying to use the oid.  ill look into a way to globally
disable the usage of all oids for ordering.



--
Jonathan Ellis
http://spyced.blogspot.com

Reply via email to