syntax error at or near ":"

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
apostol
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 12.06.2007, 10:46
Location: Ukraine

syntax error at or near ":"

Post by apostol »

I try to execute SQL query in ZQuery:

Code: Select all

SELECT lanname,	lanpltrusted,lanplcallfoid::regproc AS lanplcallf  FROM pg_language WHERE lanispl ORDER BY lanname;
ERROR: syntax error at or near ":".

How much I have understood a problem is covered in "::".

IDE: BCB5; DB: PostgreSQL 8.1.5 - 8.2.4; Components ZEOSLIB_TESTING_REV261

Help to solve this problem.
btrewern
Expert Boarder
Expert Boarder
Posts: 193
Joined: 06.10.2005, 18:51

Post by btrewern »

Try

Code: Select all

SELECT lanname,   regproc(lanpltrusted,lanplcallfoid) AS lanplcallf  FROM pg_language WHERE lanispl ORDER BY lanname;
Regards,

Ben
apostol
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 12.06.2007, 10:46
Location: Ukraine

Post by apostol »

btrewern wrote:Try

Code: Select all

SELECT lanname,   regproc(lanpltrusted,lanplcallfoid) AS lanplcallf  FROM pg_language WHERE lanispl ORDER BY lanname;
Regards,
Ben
So will be more correct :)

Code: Select all

SELECT lanname,  lanpltrusted, regproc(lanplcallfoid) AS lanplcallf  FROM pg_language WHERE lanispl ORDER BY lanname;

I and did. But it would be desirable, that there was a support "::" in ZEOS.
Post Reply