[sqlalchemy] Re: PostgreSQL - fetching boolean type gives integer type

2006-12-22 Thread Alan Franzoni
in sanjay's example, its inserting an integer 1 or 0 value, not True. I think that's the problem. He's saying: What happens is, while fetching, boolean columns are fetched as integer type (0, 1). He's trying to set the show_ads column from the value of another column (directly pulled from

[sqlalchemy] Re: PostgreSQL - fetching boolean type gives integer type

2006-12-22 Thread Sanjay
My system was having PostgreSQL 8.1.4 and psycopg. After Alan's code failing in my system, I doubted on psycopg. With some struggle, I successfully installed psycopg2 and removed psycopg, and things worked! Thanks a lot for the diagnosis, guys. Extremely sorry to have bothered you.

[sqlalchemy] Re: PostgreSQL - fetching boolean type gives integer type

2006-12-22 Thread Alan Franzoni
My system was having PostgreSQL 8.1.4 and psycopg. After Alan's code failing in my system, I doubted on psycopg. With some struggle, I successfully installed psycopg2 and removed psycopg, and things worked! You'll find really comfortable with psycopg2. I, too, used psycopg1 till August 2006

[sqlalchemy] Re: PostgreSQL - fetching boolean type gives integer type

2006-12-21 Thread Alan Franzoni
Remember this is not a wiki! {{{}}} won't format the code as you might expect. BTW, everything ok here on pgsql; boolean are True or False. You should try posting at least your db metadata and tell us which version of pgsql and psycopg you're using. -- Alan Franzoni [EMAIL PROTECTED] - Togli

[sqlalchemy] Re: PostgreSQL - fetching boolean type gives integer type

2006-12-21 Thread Michael Bayer
thats true the PG boolean type is not currently performing any translation on the value, meaning the 0 and 1 is what psycopg2 is giving you. however, the value should be able to go right back in if thats what its giving you, else psycopg2 is not consistent with itself. anyway as a workaround

[sqlalchemy] Re: PostgreSQL - fetching boolean type gives integer type

2006-12-21 Thread Alan Franzoni
thats true the PG boolean type is not currently performing any translation on the value, meaning the 0 and 1 is what psycopg2 is giving you. however, the value should be able to go right back in if thats what its giving you, else psycopg2 is not consistent with itself. ? which version of

[sqlalchemy] Re: PostgreSQL - fetching boolean type gives integer type

2006-12-21 Thread Michael Bayer
in sanjay's example, its inserting an integer 1 or 0 value, not True. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy@googlegroups.com To