Page 1 of 1

Sending '::'

Posted: 01.10.2007, 13:11
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

Posted: 01.10.2007, 14:47
by btrewern
Set ParamCheck to False if you don't need parameters.

Regards,

Ben

Posted: 03.10.2007, 11:21
by btrewern
BTW if you do need parameters then just double the :s as below:

SELECT myfield_timestamp::::date;

Regards,

Ben

Posted: 24.11.2007, 07:41
by Dennica
SELECT cast(myfield_timestamp as date);