CruxFramework / crux-widgets

6 stars 4 forks source link

Errors in the offline database crux #566

Closed admtriggo closed 9 years ago

admtriggo commented 9 years ago

From br...@triggolabs.com on October 29, 2014 18:08:43

What steps will reproduce the problem? Some operations of the offline database are not working when using the API WebSQL. EX: in Media Manager using the database offline, you can not log into the application. Because an error happens when executing the "index.openCursor" Example Code: Transaction transaction = getDatabase().getTransaction(new String[]{ getStoreName() }, Transaction.Mode.readWrite); ObjectStore<Integer, E> objStore = transaction.getObjectStore(getStoreName()); Index<Integer, Object[], E> indexComps = objStore.getIndex(indexComp); KeyRange<Object[]> keyRange = indexComps.getKeyRangeFactory().only(obj); indexComps.openCursor(keyRange, callback); What is the expected output? What do you see instead? Error: Error executing operation on database Error [Syntax_err - number of ?s in statement string does not match argument count] Please use labels and text to provide additional information.

Original issue: http://code.google.com/p/crux-framework/issues/detail?id=566

admtriggo commented 9 years ago

From br...@triggolabs.com on November 11, 2014 09:25:08

This issue was closed by revision r5804 .

Status: Fixed

admtriggo commented 9 years ago

From br...@triggolabs.com on November 17, 2014 09:57:23

When has an entity with composite index the webSQL not consults the both index.

fixed branch - r5812

Labels: TargetVersion-5.2.1

admtriggo commented 9 years ago

From br...@triggolabs.com on November 17, 2014 10:36:01

Error to retrive records with index like pessoa.id

fixed - branch r5814

admtriggo commented 9 years ago

From br...@triggolabs.com on November 17, 2014 10:47:36

Error when inserting any record in any table with autoincrement key

fixed - branch r5815

admtriggo commented 9 years ago

From br...@triggolabs.com on November 17, 2014 10:58:46

Error fetching record in a table that does not have a record.

fixed - branch r5816 .