File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,13 @@ const arrayFromCursor = (cursor: android.database.Cursor) => {
6060 case android . database . Cursor . FIELD_TYPE_INTEGER :
6161 data . push ( cursor . getDouble ( i ) ) ;
6262 break ;
63+ case android . database . Cursor . FIELD_TYPE_BLOB :
64+ data . push ( cursor . getBlob ( i ) as any ) ;
65+ break ;
66+
67+ case android . database . Cursor . FIELD_TYPE_NULL :
68+ data . push ( null ) ;
69+ break ;
6370
6471 default :
6572 throwError ( `unknown.type: ${ type } ` ) ;
@@ -152,12 +159,10 @@ export class SQLiteDatabaseBase {
152159 } ) {
153160 const data = event . data ;
154161 const id = data . id ;
155- // console.log('onWorkerMessage', id, data);
156162
157163 if ( id && messagePromises . hasOwnProperty ( id ) ) {
158164 messagePromises [ id ] . forEach ( function ( executor ) {
159165 executor . timeoutTimer && clearTimeout ( executor . timeoutTimer ) ;
160- // console.log('resolving worker message', id, data);
161166 if ( data . error ) {
162167 executor . reject ( data . error ) ;
163168 } else {
@@ -202,7 +207,6 @@ export class SQLiteDatabaseBase {
202207 keys . forEach ( ( k ) => {
203208 ( com as any ) . akylas . sqlite . WorkersContext . setValue ( `${ id } _${ k } ` , nativeData [ k ] . _native || nativeData [ k ] ) ;
204209 } ) ;
205- // console.log('sending message to worker', messageData, keys);
206210 const mData = Object . assign (
207211 {
208212 type : 'call' ,
You can’t perform that action at this time.
0 commit comments