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 Sql > Re: Problem ins...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 3537 of 3799
Post > Topic >>

Re: Problem inserting data

by tgl@[EMAIL PROTECTED] (Tom Lane) Jun 20, 2008 at 10:57 AM

Adrian Klaver <aklaver@[EMAIL PROTECTED]
> writes:
> Two options:
> 1) Change the column in Postgres to an integer type.
> 2) Change the assignment in pg_cast from explicit  to implied for the 
> int4,bool cast. See for more details:
> http://www.postgresql.org/docs/8.3/interactive/catalog-pg-cast.html

Making it an assignment cast would be sufficient for the particular
case shown, and would be less likely to introduce surprising behavior
elsewhere.

Of course, depending on how thoroughly the application confuses int
and bool, you might be stuck with using the implicit cast.  But it's
a bit scary.  I think I'd look at option (1) before trying (2) with an
implicit cast.

			regards, tom lane

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




 4 Posts in Topic:
Problem inserting data
vrobador@[EMAIL PROTECTED  2008-06-20 14:20:18 
Re: Problem inserting data
aklaver@[EMAIL PROTECTED]  2008-06-20 07:40:46 
Re: Problem inserting data
tgl@[EMAIL PROTECTED] (T  2008-06-20 10:57:26 
Re: Problem inserting data
vrobador@[EMAIL PROTECTED  2008-06-20 17:55:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Tue Dec 2 21:30:58 CST 2008.