Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > boolean as 0 an...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 3066 of 3177
Post > Topic >>

boolean as 0 and 1

by gentosaker@[EMAIL PROTECTED] ("A B") Apr 8, 2008 at 11:54 AM

Hi,
Is there a way to make postgresql to automatically convert integer
values to boolean?

Consider

create table x (a boolean);
insert into x (a) values (1);

the inser fails :-(
Is there a way to make it work without altering the insert command?

-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 4 Posts in Topic:
boolean as 0 and 1
gentosaker@[EMAIL PROTECT  2008-04-08 11:54:09 
Re: boolean as 0 and 1
shoaibmir@[EMAIL PROTECTE  2008-04-08 19:59:15 
Re: boolean as 0 and 1
shoaibmir@[EMAIL PROTECTE  2008-04-08 20:03:20 
Re: boolean as 0 and 1
aarni@[EMAIL PROTECTED]   2008-04-08 13:06:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 6:50:31 CDT 2008.