RE: JDBC problem

From: Peter Mount <petermount(at)it(dot)maidstone(dot)gov(dot)uk>
To: "'BogdanKRomski'" <b(dot)kromski(at)gaschka(dot)pl>, pgsql-interfaces(at)postgresql(dot)org
Subject: RE: JDBC problem
Date: 2000-08-25 06:31:19
Message-ID: 1B3D5E532D18D311861A00600865478CF1B2D2@exchange1.nt.maidstone.gov.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

The parser error is from the backend not JDBC (as it doesnt parse anything
other than PreparedStatement's).

I think it's the sub-select that's causing the problem, as it's not
supported in 6.5.

Peter

--
Peter Mount
Enterprise Support Officer, Maidstone Borough Council
Email: petermount(at)it(dot)maidstone(dot)gov(dot)uk
WWW: http://www.maidstone.gov.uk
All views expressed within this email are not the views of Maidstone Borough
Council

-----Original Message-----
From: BogdanKRomski [mailto:b(dot)kromski(at)gaschka(dot)pl]
Sent: Tuesday, August 22, 2000 12:47 PM
To: pgsql-interfaces(at)postgresql(dot)org
Subject: [INTERFACES] JDBC problem

Hello

I'm using the Postgresql 6.5 and i try to perform statement

INSERT into KEY_ITEM (key_item_id,keyName) values(((SELECT
MAX(key_item_id) FROM KEY_ITEM)+1),?)

and I get the message :

Error: ERROR: parser: parse error at or near "select"

I'm not sure but part "(SELECT MAX(key_item_id) FROM KEY_ITEM)+1)" of
statement does't work

thanks for all informations

Bogdan Kromski

ps. on Oracle and Sybase it is working correct

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter Mount 2000-08-25 06:33:57 RE: using large objects with jdbc
Previous Message Peter Mount 2000-08-25 06:29:41 RE: JDBC Patch