ports/137001: [MAINTAINER] java/sqlitejdbc: activate existent feature
Lapo Luchini
lapo at lapo.it
Wed Jul 22 16:50:06 UTC 2009
>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:
More information about the freebsd-ports-bugs
mailing list