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 > Re: operator is...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 17 of 21 Topic 15458 of 17602
Post > Topic >>

Re: operator is not unique: integer || integer

by Daniel Schuchardt <daniel_schuchardt@[EMAIL PROTECTED] > May 6, 2008 at 10:33 AM

Alban Hertroys schrieb:
>> another example?:
>>
>> RAISE NOTICE "error during validation % :", 
>> 'ks:"'||ks||'"@[EMAIL PROTECTED]
"'||loopdate||'"';  (here LoopDate is a DateTime)
>
> Ehm... What's wrong with RAISE NOTICE "error during validation 
> ks:"%"@[EMAIL PROTECTED]
"%" :', ks, loopdate; ? (I don't quite understand the purpose 
> of that colon at the end, btw).
> Allows you to format the date to your liking too, just add a 
> to_char(loopdate, <format string>).
>
> I know these were just a few examples of your troubles, but so far it 
> appears it's desirable to get rid of them for better code.
>
may be thats a good thing but its not possible. we have to do a major 
rollout for this. we have to look through all the code.
and our next and more im****tant project is to become .net compatible. we 
have to upgrade our development enviroment because of trouble with 
incompatibilities ;-)
so we have to stay on postgresql81 the next years.
if it is nice or not to work with autocasts doesnt matter, it was able 
to do it so we used it for many years.

here another nice example:
(old.dbrid is INTEGER)

      EXECUTE 'UPDATE '||old.rc_tablename||' SET wvod=NULL WHERE 
dbrid='||old.rc_dbrid;

TIMESTAMP
      f:=EXTRACT(MINUTE FROM new.bd_anf_rund-CAST('0:'||CAST(f3 AS 
VARCHAR) AS TIME));

TIMESTAMP too
      new.bd_anf_rund:=timestamp_to_date(new.bd_anf) || ' ' || f4+f2 || 
':' || f1*tplrund;



PS:

i pick up only some string concatanation examples because i can identify 
them fast. all other things i cant see so easy.
(varcharfield=integerfield ^^)

PSPS:
don't touch a running system ;-)

Daniel.
 




 21 Posts in Topic:
operator varchar = integer
Daniel Schuchardt <dan  2008-05-05 11:18:37 
Re: operator varchar = integer
Daniel Schuchardt <dan  2008-05-05 12:55:25 
Re: operator varchar = integer
laurenz.albe@[EMAIL PROTE  2008-05-05 14:44:02 
Re: operator varchar = integer
david@[EMAIL PROTECTED]   2008-05-05 07:33:30 
Re: operator varchar = integer
Daniel Schuchardt <dan  2008-05-05 17:26:40 
Re: operator varchar = integer
david@[EMAIL PROTECTED]   2008-05-05 08:52:54 
Re: operator varchar = integer
Daniel Schuchardt <dan  2008-05-05 18:53:20 
Re: operator varchar = integer
tgl@[EMAIL PROTECTED] (T  2008-05-05 13:36:01 
Re: operator varchar = integer
Daniel Schuchardt <dan  2008-05-05 21:04:41 
Re: operator varchar = integer
Daniel Schuchardt <dan  2008-05-05 18:32:37 
operator is not unique: integer || integer
Daniel Schuchardt <dan  2008-05-05 18:43:37 
Re: operator is not unique: integer || integer
Daniel Schuchardt <dan  2008-05-05 20:54:07 
Re: operator is not unique: integer || integer
daniel_schuchardt@[EMAIL   2008-05-05 21:36:51 
Re: operator is not unique: integer || integer
kgore4@[EMAIL PROTECTED]   2008-05-06 10:05:18 
Re: operator is not unique: integer || integer
Daniel Schuchardt <dan  2008-05-06 10:08:06 
Re: operator is not unique: integer || integer
dalroi@[EMAIL PROTECTED]   2008-05-06 08:36:46 
Re: operator is not unique: integer || integer
Daniel Schuchardt <dan  2008-05-06 10:33:37 
now i'm really confused. insert/update does autocast, where some
Daniel Schuchardt <dan  2008-05-06 11:31:55 
Re: now i'm really confused. insert/update does autocast, where
Daniel Schuchardt <dan  2008-05-06 11:56:17 
Re: now i'm really confused. insert/update does autocast, where
kleptog@[EMAIL PROTECTED]  2008-05-06 13:16:30 
Re: now i'm really confused. insert/update does autocast, where
peter_e@[EMAIL PROTECTED]  2008-05-08 17:26:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Mon Dec 1 19:20:06 CST 2008.