From: Dick K. <d.j...@ch...> - 2003-04-30 16:23:49
|
Hi List, The last 6 month I have been developing a system with Python, wxPython and pyPgSQL. I use Python 2.2.2, PostgreSQL 7.3.2 (the latest) and pyPgSQL 2.3 Mostly, it works great. Thanks to all contributors. However, lately I saw a strange phenomenon. When I use the following select statement : Select last-value from tabellen_tab-id_seq; where tabellen_tab-id_seq is a Postgresql sequence, I get back a number followed by an 'L' so in this case the result was [547L]. Obviously this fails in the rest of my code, because I expect an integer. I think it might have something to do with the fact that in PostgreSQL this is an 8 byte int, but I am not sure.... Kind regards, Dick Kniep |