well if thats the case, the postgres engine should convert an incoming string port parameter into an integer, if needed. that way it stays neutral on the outside, and also the string-URL form of create_engine still works.

On Jan 22, 2006, at 5:36 PM, Andreas Kostyrka wrote:

Am Montag, den 23.01.2006, 08:08 +1100 schrieb Robert Leftwich:
Nicholas Wieland wrote:
Every test fails, and honestly I don't have a clue of why this is happening ...

    pool = self.poolclass(lambda: self.module.connect(*args,
**params), **self.params)
TypeError: an integer is required


The engine is a normal engine that uses 'postgresql' as backend.
Every test fails with this error, and with psycopg1 everything was working fine.


The recent releases of pyscopg2 changed to requiring an integer for the port and throwing this error if it is not supplied as such. You need to specify an integer in your params dict to the create_engine() call. I'll have a look to see
if SQLAlchemy provides a default.

I think it's worse, because I seem to remember that psycopg1 needs the
port to be a string.

Andreas

Robert



-------------------------------------------------------
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
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users



-------------------------------------------------------
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
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to