yathit / ydn-db

Javascript database module for Indexeddb, Web SQL and localStorage storage mechanisms supporting version migration, advanced query, SQL and transaction.
Apache License 2.0
503 stars 41 forks source link

Fix #90 : For index name comparaison indexOf is used instead of == #113

Closed mehdirande closed 7 years ago

mehdirande commented 7 years ago

When using indexOf instead of == if a index name partially match compouned index name, both index are considered as equal by the code.

IndexOf seems to be used because 'name' var is threated as an array. getName definition states that the return type is a string so this fix should be safe.


This change is Reviewable

yathit commented 7 years ago

Yes, this does fix issue #98 without regression.