From: Cory T. <ube...@gm...> - 2006-07-19 01:28:58
|
> As far as I can tell, we only switched pymerase from pgdb to psycopg, > I'm not sure if I ever bothered to upgrade to psycopg2 pymerase definitely still uses psycopg1. To use psycopg2, one needs to explicitly import psycopg2. All of the dbAPIs import the original... "import psycopg". For the most part it's just a matter of going through and adding a 2 to the end of all the import statements but there are a few cases (such as serialize=0) where some work is involved. > Upgrading to psychopg2 does sound like a good idea, though i'm not > sure when we could get around to it. No need to hurry, psycopg 1 still works just fine. It's just a pain to install. Eg. it doesn't even look in /usr/include for the postgres headers. It just waits for you to tell it that, yes, the headers _are_ installed to the default directory. Cory |