Sending '::'

Forum related to PostgreSQL

Moderators: gto, cipto_kh, EgonHugeist, olehs

Post Reply
Paulonki
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: 24.03.2006, 17:50

Sending '::'

Post by Paulonki »

How to send '::' via string to Postgresql?
Example: 'SELECT myfield_timestamp::date;' this is work fine in psql, but is rejected via ZQuery.

Thanks

Paulonki
btrewern
Expert Boarder
Expert Boarder
Posts: 193
Joined: 06.10.2005, 18:51

Post by btrewern »

Set ParamCheck to False if you don't need parameters.

Regards,

Ben
btrewern
Expert Boarder
Expert Boarder
Posts: 193
Joined: 06.10.2005, 18:51

Post by btrewern »

BTW if you do need parameters then just double the :s as below:

SELECT myfield_timestamp::::date;

Regards,

Ben
Dennica
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 20.10.2005, 09:19

Post by Dennica »

SELECT cast(myfield_timestamp as date);
Post Reply