--- David Crawshaw <[EMAIL PROTECTED]> wrote:
On 29/12/06, Joe Wilson <[EMAIL PROTECTED]> wrote:
> getTables() improvements:
> - "String[] types" argument is now used to determine what table
> types to query. (mandatory)
An example of the test I am after:
...
Which is now in src/test/DBMetaDataTest. The basic idea is to exercise
the code in the driver, so if I ever go in to fix a bug I don't make
some obvious mistake (surprisingly common).
Sorry, I don't run Java 5 and as result the tests don't compile for me.
Some JUnit Java 5 dependency? I dunno.
I've put something similar to your patches into the code and will have
a new version up soon.
Good enough. It works.
Please consider adding the following patch. It shows people which
function is not yet implemented so they spend less time debugging
the driver. Also a one-liner to fix Cygwin building as well.
Thanks.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SQLiteJDBC" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups-beta.google.com/group/sqlitejdbc?hl=en
-~----------~----~----~----~------~----~------~--~---
diff -rN -u old-src/src/org/sqlite/Conn.java new-src/src/org/sqlite/Conn.java
--- old-src/src/org/sqlite/Conn.java 2006-12-24 11:30:00.000000000 -0500
+++ new-src/src/org/sqlite/Conn.java 2006-12-28 23:51:00.000000000 -0500
@@ -87,13 +87,13 @@
}
public Map getTypeMap() throws SQLException
- { throw new SQLException("not yet implemented");}
+ { throw new SQLException("getTypeMap not yet implemented");}
public void setTypeMap(Map map) throws SQLException
- { throw new SQLException("not yet implemented");}
+ { throw new SQLException("setTypeMap not yet implemented");}
public boolean isReadOnly() throws SQLException { return false; } // FIXME
public void setReadOnly(boolean ro) throws SQLException
- { throw new SQLException("not yet implemented"); }
+ { throw new SQLException("setReadOnly not yet implemented"); }
public DatabaseMetaData getMetaData() {
if (meta == null) meta = new MetaData(this);
diff -rN -u old-src/src/org/sqlite/RS.java new-src/src/org/sqlite/RS.java
--- old-src/src/org/sqlite/RS.java 2006-12-24 11:30:00.000000000 -0500
+++ new-src/src/org/sqlite/RS.java 2006-12-28 23:51:23.000000000 -0500
@@ -153,7 +153,7 @@
public boolean isBeforeFirst() throws SQLException { return row == 0; }
public boolean isFirst() throws SQLException { return row == 1; }
public boolean isLast() throws SQLException { // FIXME
- throw new SQLException("function not yet implemented for SQLite"); }
+ throw new SQLException("isLast not yet implemented for SQLite"); }
/** Resets the RS in a way safe for both Stmt and PrepStmt.
* Full reset happens in Stmt.close(). */
diff -rN -u old-src/upstream/Makefile new-src/upstream/Makefile
--- old-src/upstream/Makefile 2006-12-24 11:30:00.000000000 -0500
+++ new-src/upstream/Makefile 2006-12-24 11:56:24.000000000 -0500
@@ -60,7 +60,7 @@
#-Wl,--gc-sections
build/org/sqlite/SQLite.class: build/SQLite.mips
- java -cp
$(nestedvm)/build$(sep)$(nestedvm)/upstream/build/classgen/build \
+ java -cp
"$(nestedvm)/build$(sep)$(nestedvm)/upstream/build/classgen/build" \
org.ibex.nestedvm.Compiler \
-outformat class -d build -o unixRuntime \
org.sqlite.SQLite build/SQLite.mips