File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/react-native/src/db/adapters/react-native-quick-sqlite Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ export class RNQSDBAdapter extends BaseObserver<DBAdapterListener> implements DB
7171 */
7272 async executeRaw ( query : string , params ?: any [ ] ) : Promise < any [ ] [ ] > {
7373 const result = await this . baseDB . execute ( query , params ) ;
74- return result . rows ?. _array ?? [ ] ;
74+ const rows = result . rows ?. _array ?? [ ] ;
75+ return rows . map ( ( row ) => Object . values ( row ) ) ;
7576 }
7677
7778 async executeBatch ( query : string , params : any [ ] [ ] = [ ] ) : Promise < QueryResult > {
@@ -93,7 +94,8 @@ export class RNQSDBAdapter extends BaseObserver<DBAdapterListener> implements DB
9394 // 'executeRaw' is not implemented in RNQS, this falls back to 'execute'.
9495 executeRaw : async ( sql : string , params ?: any [ ] ) => {
9596 const result = await ctx . execute ( sql , params ) ;
96- return result . rows ?. _array ?? [ ] ;
97+ const rows = result . rows ?. _array ?? [ ] ;
98+ return rows . map ( ( row ) => Object . values ( row ) ) ;
9799 }
98100 } ;
99101 }
You can’t perform that action at this time.
0 commit comments