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 General > Autocast script...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 15466 of 16159
Post > Topic >>

Autocast script of peter e in PostgreSQL 8.3

by Daniel Schuchardt <daniel_schuchardt@[EMAIL PROTECTED] > May 6, 2008 at 02:09 PM

If i use this script
http://people.planetpostgresql.org/peter/index.php?/archives/18-Readding-implicit-casts-in-PostgreSQL-8.3.html
in PostgreSql 8.3 to reactivate autocast i get the following problems:


*without autocast* script (i learned that 8.3 does autocast if one of 
the || parameters is Text(or Char/Varchar) :-P ):

demo=# SELECT 1||'~'||1;
 ?column?
----------
 1~1
(1 row)


*with autocast:

*SCDS=# SELECT 1||'~'||1;
ERROR:  operator is not unique: integer || unknown at character 9
HINT:  Could not choose a best candidate operator. You might need to add 
explicit type casts.
LINE 1: SELECT 1||'~'||1;

SCDS=# SELECT 1||'~'::TEXT||1;
ERROR:  operator is not unique: integer || text at character 9
HINT:  Could not choose a best candidate operator. You might need to add 
explicit type casts.
LINE 1: SELECT 1||'~'::TEXT||1;


Any hints?

Daniel.
 




 5 Posts in Topic:
Autocast script of peter e in PostgreSQL 8.3
Daniel Schuchardt <dan  2008-05-06 14:09:30 
Re: Autocast script of peter e in PostgreSQL 8.3
kleptog@[EMAIL PROTECTED]  2008-05-06 14:39:05 
Re: Autocast script of peter e in PostgreSQL 8.3
Daniel Schuchardt <dan  2008-05-06 15:37:57 
Re: Autocast script of peter e in PostgreSQL 8.3
kleptog@[EMAIL PROTECTED]  2008-05-06 16:59:58 
Re: Autocast script of peter e in PostgreSQL 8.3
Daniel Schuchardt <dan  2008-05-06 20:07:35 

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 2:09:56 CDT 2008.