Skip site navigation (1) Skip section navigation (2)

moveToInsertRow() : Method Not Implemented

From: Olivier Denier <olivier(dot)denier(at)mangoosta(dot)fr>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: moveToInsertRow() : Method Not Implemented
Date: 2001-05-11 13:35:59
Message-ID: 5.0.2.1.0.20010511152538.00a4b690@pop.free.fr (view raw or flat)
Thread:
Lists: pgsql-jdbc
Hi,

In my current development project, i would like to use the 
"moveToInsertRow()" method (JDBC 2.0).
But i have with the code below an Exception : "'Method Not Implemented' error"

Statement vInsert = pConnection.createStatement();

			if (vInsert != null) {
				ResultSet vRS = vInsert.executeQuery("SELECT * FROM personne");

				if (vRS != null) {

					vRS.moveToInsertRow();
					vRS.updateString("nom", "titi");
					vRS.updateString("prenom", "grominet");
					vRS.insertRow();

					vRS.close();
				} // if (vRS != null)

				vInsert.close();
			} // if (vInsert != null)


I use PostgreSQL 7.0.3.
My driver is jdbc7.0-1.2.jar.

I think this problem is resolved in the driver for PostgreSQL 7.1 ?
Where can i download it ?


Thanx

Olivier Denier


pgsql-jdbc by date

Next:From: Hunter HillegasDate: 2001-05-11 15:20:16
Subject: FW: [JBoss-user] Postgres woes: solution
Previous:From: Ho, KhanhDate: 2001-05-11 03:26:57
Subject: Problem using PreparedStatement.get/setBinaryStream()

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group