Skip to content

Commit c983906

Browse files
committed
fix: handle for native objects
1 parent 434f789 commit c983906

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sqlite.common.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,16 @@ export function paramToString(p: SqliteParam) {
5454
if (p instanceof java.io.ByteArrayOutputStream) {
5555
return p.toByteArray();
5656
}
57+
if (p instanceof java.lang.Object) {
58+
return p;
59+
}
5760
} else {
5861
if (p instanceof NSData) {
5962
return p;
6063
}
64+
if (p instanceof NSObject) {
65+
return p;
66+
}
6167
}
6268
if (p.hasOwnProperty('length') && !Array.isArray(p)) {
6369
return p;

0 commit comments

Comments
 (0)