Changeset 3542 for XerialJ/trunk/sqlite-jdbc
- Timestamp:
- 08/18/09 13:15:00 (3 years ago)
- Location:
- XerialJ/trunk/sqlite-jdbc
- Files:
-
- 3 modified
-
Makefile.package (modified) (1 diff)
-
src/main/java/org/sqlite/NestedDB.java (modified) (2 diffs)
-
src/test/java/org/sqlite/TransactionTest.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
XerialJ/trunk/sqlite-jdbc/Makefile.package
r3395 r3542 70 70 ssh $(LINUX_SERVER) "source .zprofile && source /etc/profile.d/java.sh && cd $(LINUX_WORK) && $(TEST_CMD)" 71 71 ssh $(AMD_SERVER) "source .zprofile && cd $(AMD_WORK) && $(TEST_CMD)" 72 ssh $(WIN_SERVER) "source .zprofile && cd $(WIN_WORK) && $(TEST_CMD) -DargLine='-Dsqlite.purejava=true'" 72 73 73 74 -
XerialJ/trunk/sqlite-jdbc/src/main/java/org/sqlite/NestedDB.java
r3531 r3542 161 161 162 162 @Override 163 protected int _exec(String sql) throws SQLException164 { 165 int passback = rt. malloc(4);163 protected synchronized int _exec(String sql) throws SQLException 164 { 165 int passback = rt.xmalloc(4); 166 166 int str = rt.strdup(sql); 167 167 int status = call("sqlite3_exec", handle, str, 0, 0, passback); … … 169 169 { 170 170 String errorMessage = cstring(passback); 171 call("sqlite3_free", passback);171 call("sqlite3_free", deref(passback)); 172 172 rt.free(passback); 173 173 throwex(status, errorMessage); -
XerialJ/trunk/sqlite-jdbc/src/test/java/org/sqlite/TransactionTest.java
r2990 r3542 1 1 package org.sqlite; 2 2 3 import static org.junit.Assert.assertEquals; 4 import static org.junit.Assert.assertFalse; 5 import static org.junit.Assert.assertTrue; 3 import static org.junit.Assert.*; 6 4 7 5 import java.io.File; … … 37 35 { 38 36 Class.forName("org.sqlite.JDBC"); 37 System.out.println("running in " + (SQLiteJDBCLoader.isNativeMode() ? "native" : "pure-java") + " mode"); 39 38 } 40 39


