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

WebSQL : Fix getSchema when having more than one multi-entry index. #92

Closed mehdirande closed 8 years ago

mehdirande commented 8 years ago

In WebSQL implementation multi-entry indexes are stored in a separate table. Each 'multientry' table is composed of two columns, one which name match the multi-entry index name and one column 'id'. What we expect getSchema method to do is : When parsing a 'multientry' table,

yathit commented 8 years ago

@mehdirande Thanks for great PR. I have changed a bit so that it fit with strangest compile flag and some failing cases on other tests. Please add unit test if you are in doubt.