Updatable query and column aliases - Mailing list pgsql-jdbc

From Anton Bobov
Subject Updatable query and column aliases
Date
Msg-id 4F5725EE.6070503@sibsac.ru
Whole thread Raw
Responses Re: Updatable query and column aliases  (Stefan Reiser <s.reiser@tu-braunschweig.de>)
List pgsql-jdbc
Hi folks.

I cant moveToInsertRow when use queries with assigned names in select
list.

Following code works good:

     stmt = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
                                       ResultSet.CONCUR_UPDATABLE);
     rs = stmt.executeQuery("select id from test");
     rs.moveToInsertRow();

, but then I change query to "select id val from test" exception "The
column name id was not found in this ResultSet." raised on
moveToInsertRow.

Is it any limitation on updatable queries?

--
Anton


pgsql-jdbc by date:

Previous
From: John R Pierce
Date:
Subject: Re: Defining local IP address when opening connections to database
Next
From: Stefan Reiser
Date:
Subject: Re: Updatable query and column aliases