Page 1 of 1
PostgreSQL: select now()::date error
Posted: 21.08.2022, 06:27
by ribut
Use Zeos 7.2
select now()::date -->syntax error
but
select now()::::date -->Run
Re: PostgreSQL: select now()::date error
Posted: 22.08.2022, 07:48
by marsupilami
This is as expected. The default param char is the ':'. One possibility is to change the ParamChar property to something different, '#' maye.
Another possibility is to use a standard SQL cast. Cloudflare currently keeps me from posting an Example here...
Re: PostgreSQL: select now()::date error
Posted: 22.08.2022, 14:41
by ribut
with qrySQL do begin
ParamChar:='#'; //--> Ok
Close;
SQL.Clear;
SQL.Add('select now()::date');
Open;
end;
Ok Jan Thanks
Now error syntax no show