Re: operator is not unique: integer || integer - Mailing list pgsql-general

From Alban Hertroys
Subject Re: operator is not unique: integer || integer
Date
Msg-id C7A3CB29-6516-4AE2-8680-DF114539701F@solfertje.student.utwente.nl
Whole thread Raw
In response to Re: operator is not unique: integer || integer  (Daniel Schuchardt <daniel_schuchardt@web.de>)
Responses Re: operator is not unique: integer || integer  (Daniel Schuchardt <daniel_schuchardt@web.de>)
List pgsql-general
> another example?:
>
> RAISE NOTICE "error during validation % :", 'ks:"'||ks||'"@"'||
> loopdate||'"';  (here LoopDate is a DateTime)

Ehm... What's wrong with RAISE NOTICE "error during validation
ks:"%"@"%" :', 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.

Alban Hertroys

--
If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.


!DSPAM:737,481ffc80927661001715755!



pgsql-general by date:

Previous
From: "Dan \"Heron\" Myers"
Date:
Subject: Re: more custom C function fun
Next
From: Martijn van Oosterhout
Date:
Subject: Re: more custom C function fun