* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/core/Attic/BaseStatement.java,v 1.3 2003/05/07 03:03:30 barry Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/core/Attic/BaseStatement.java,v 1.4 2003/08/11 20:54:55 barry Exp $
*
*-------------------------------------------------------------------------
*/
* excess rows are silently dropped.
*/
public void addWarning(String p_warning) throws SQLException;
+ public void close() throws SQLException;
public int getFetchSize() throws SQLException;
public int getMaxRows() throws SQLException;
public int getResultSetConcurrency() throws SQLException;
public String getStatementName();
+ public SQLWarning getWarnings() throws SQLException;
}
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.21 2003/06/30 21:10:55 davec Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.22 2003/08/11 20:54:55 barry Exp $
*
*-------------------------------------------------------------------------
*/
}
rs.close();
} else {
- clearWarnings();
- execSQL(sql);
- SQLWarning warning = getWarnings();
+ BaseResultSet l_rs = execSQL(sql);
+ BaseStatement l_stat = l_rs.getPGStatement();
+ SQLWarning warning = l_stat.getWarnings();
if (warning != null)
{
level = warning.getMessage();
}
- clearWarnings();
+ l_rs.close();
+ l_stat.close();
}
if (level != null) {
+ level = level.toUpperCase();
if (level.indexOf("READ COMMITTED") != -1)
return Connection.TRANSACTION_READ_COMMITTED;
else if (level.indexOf("READ UNCOMMITTED") != -1)