Re: [SQLObject] incorrect parsing of DSN
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2005-12-30 22:42:30
|
On Fri, Dec 30, 2005 at 01:07:19PM -0800, Cliff Wells wrote: > postgres:/user:pass@/path/to/local/socket:/database > > This doesn't work because SO decides that /path/to/local/socket is the > name of the database because it starts with a slash. > The obvious workaround is to use > > postgres:///?host=/path/to/local/socket&dbname=database I would rather fix SQLObject to allow to write something like postgres://user:pass@/path/to/local/socket/database In this case host must be None, and this must make SQLObject to split the database to socket path and dbname. > P.S. Hi Oleg! I haven't seen you in what seems like years (on c.l.py). > Hope things are well with you. Hello, hello. I am alive and well. I have left c.l.py long ago - the flow is too intensive there, I don't have time to read and write so much. But I have never left Python. Exactly opposite - I left all other languages I had been using (Pascal, Object Pascal, Modula-2). Happy New Year! Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |