Strange phenomenon?

Dick Kniep <d.j.kniep-/NLkJaSkS4VmR6Xm/[email protected]>
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
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



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.