Date: Wed, 22 Jul 2009 18:46:17 +0200 From: Lapo Luchini <lapo@lapo.it> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/137001: [MAINTAINER] java/sqlitejdbc: activate existent feature Message-ID: <4A674259.6020902@lapo.it> Resent-Message-ID: <200907221650.n6MGo6fm016439@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 137001 >Category: ports >Synopsis: [MAINTAINER] java/sqlitejdbc: activate existent feature >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Jul 22 16:50:05 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Lapo Luchini >Release: FreeBSD 7.2-RELEASE-p2 amd64 >Organization: >Environment: System: FreeBSD lapo.andxor.it 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24 00:14:35 UTC 2009 >Description: Activat support for getGeneratedKeys() for prepared statements, which is supported as well as the non-prepared statement case, but it was currently returning a not implemented exception. Added file(s): - files/patch-src_org_sqlite_Conn.java Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: conn.prepareStatement("INSERT INTO .........", Statement.RETURN_GENERATED_KEYS ); >Fix: --- sqlitejdbc-056.patch begins here --- diff -ruN --exclude=CVS /usr/ports/java/sqlitejdbc.orig/files/patch-src_org_sqlite_Conn.java /usr/ports/java/sqlitejdbc/files/patch-src_org_sqlite_Conn.java --- /usr/ports/java/sqlitejdbc.orig/files/patch-src_org_sqlite_Conn.java 1970-01-01 01:00:00.000000000 +0100 +++ /usr/ports/java/sqlitejdbc/files/patch-src_org_sqlite_Conn.java 2009-07-22 18:33:57.000000000 +0200 @@ -0,0 +1,14 @@ +--- src/org/sqlite/Conn.java.orig 2009-07-22 18:33:46.000000000 +0200 ++++ src/org/sqlite/Conn.java 2009-07-22 18:33:53.000000000 +0200 +@@ -214,7 +214,10 @@ class Conn implements Connection + ResultSet.CONCUR_READ_ONLY); + } + public PreparedStatement prepareStatement(String sql, int autoC) +- throws SQLException { throw new SQLException("NYI"); } ++ throws SQLException { ++ return prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ++ ResultSet.CONCUR_READ_ONLY); ++ } + public PreparedStatement prepareStatement(String sql, int[] colInds) + throws SQLException { throw new SQLException("NYI"); } + public PreparedStatement prepareStatement(String sql, String[] colNames) --- sqlitejdbc-056.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A674259.6020902>