Wrong error message from server - Mailing list pgsql-bugs

From
Subject Wrong error message from server
Date
Msg-id 002801c8dcf6$22822840$1200a8c0@kharkov.localhost
Whole thread Raw
List pgsql-bugs
ERROR:  syntax error at or near "and" at character 307

Actually error is at character 618
-------------------------------------------------
 /*=20
 DELETE FROM akh_test_suit_detail
 WHERE ID in (
    select atsd.id as id1
    from akh_test_suit_detail atsd
    left join akh_test_suit ats on ats.ID =3D atsd.test_suit_id
    where atsd.test_group_id =3D 6204 and ats.suit_status_id =3D get_proper=
ty_id( 'suit_status', 'IN DEV' )
    )
-- */

-- /*
 INSERT INTO akh_test_suit_detail
   ( test_suit_id, test_group_id )
 select
   atst.value::integer, atsd.test_group_id as id2
 from akh_test_suit_detail atsd
 left join akh_test_suit ats on ats.ID =3D atsd.test_suit_id
 left join akh_test_suit_type atst on atst.ID =3D ats.test_suit_type_ID
 where atsd.test_group_id =3D ? and ats.suit_status_ID =3D get_property( 's=
uit_status', 'IN DEV' )
 group by atsd.test_group_id, atst.value
-- */

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #4275: Multicolumn subquery expression not allowed on both sides of IS DISTINCT FROM
Next
From: Nicolas ANTONINI
Date:
Subject: Re: BUG #4167: When generating UUID using UUID-OSSP module, UUIDs are not unique on Windows