Updatable query and column aliases

From: Anton Bobov <bobov_a(at)sibsac(dot)ru>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Updatable query and column aliases
Date: 2012-03-07 09:10:06
Message-ID: 4F5725EE.6070503@sibsac.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Michael Bauland 2012-03-07 16:20:08 Defining local IP address when opening connections to database
Previous Message Francisco Javier Morosini Eguren 2012-03-07 02:00:54 PgNotificationHelper