axemclion / jquery-indexeddb

An IndexedDB Plugin for Jquery.
Other
195 stars 71 forks source link

Ranges incorrectly defined. #36

Closed axemclion closed 11 years ago

axemclion commented 11 years ago

Thanks to Davide Contin for pointing this out. The way ranges were specified was opposite to the specification. This needs to be fixed now. Currently, specifying a range using ['a', 'z'] in the jquery-indexeddb plugin excludes 'a' and 'z' from the results. However, in the specification, when new IDBKeyRange(lower, upper, lowerOpen, upperOpen) is used, by default, the values of lowerOpen and upperOpen are false, and lower and upper are included.

axemclion commented 11 years ago

Email from Davide

I had a stressful time to complete some projects and now I'm starting the tests with IndexedDB I create the example on jsFiddle at this link: http://jsfiddle.net/billiblu/A4uJh/6/

With a click on Load data link the database is populated. With a click on Fill Grid all data is reared and inserted on the table. After data loaded, you can try to search a code ‘9494’. This code is present on database, but the filter not work. If you try to search with code ‘949’ 4 products will be found. I tested the script only on Google Chrome.

where am I wrong?

Thank you,

Davide