Skip to content

Commit fd2688f

Browse files
committed
Fix capacitor tests
1 parent 5b66bd0 commit fd2688f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/capacitor/src/adapter/CapacitorSQLiteAdapter.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ export class CapacitorSQLiteAdapter extends DBAdapter {
190190

191191
if (platform == 'android') {
192192
const result = await db.executeSet([{ statement: query, values: mappedParams }], false);
193-
return queryResultWithoutRows({ insertId: result.changes?.lastId, rowsAffected: result.changes?.changes ?? 0 });
193+
return queryResultFromMapped(
194+
{ insertId: result.changes?.lastId, rowsAffected: result.changes?.changes ?? 0 },
195+
[]
196+
);
194197
}
195198

196199
// iOS (and other platforms): use run("all")

0 commit comments

Comments
 (0)