Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix CLOB changes for SQLite compatibility. Use the Clob interface ins…

…tead of the H2 specific class JdbcClob.
  • Loading branch information...
commit 320946cbbc34c5db5a856eb5581b5e3280c2c5f3 1 parent 4d0ccdd
@cessationoftime authored
View
6 src/main/java/com/xtremelabs/robolectric/shadows/ShadowSQLiteCursor.java
@@ -3,8 +3,8 @@
import android.database.sqlite.SQLiteCursor;
import com.xtremelabs.robolectric.internal.Implementation;
import com.xtremelabs.robolectric.internal.Implements;
-import org.h2.jdbc.JdbcClob;
+import java.sql.Clob;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
@@ -101,9 +101,9 @@ public boolean moveToPosition(int pos) {
public String getString(int columnIndex) {
checkPosition();
Object value = this.currentRow.get(getColumnNames()[columnIndex]);
- if (value instanceof JdbcClob) {
+ if (value instanceof Clob) {
try {
- return ((JdbcClob) value).getSubString(1, (int)((JdbcClob) value).length());
+ return ((Clob) value).getSubString(1, (int)((Clob) value).length());
} catch (SQLException x) {
throw new RuntimeException(x);
}
Please sign in to comment.
Something went wrong with that request. Please try again.