Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Error "cannot read property 'indexes' of undefined" on DROP TABLE #133
Using a pre-built minified version 2.2.1, creating a table and then dropping it results in an error:
The following script creates, then immediately deletes, a table, resulting in the error being printed to the console.
The problem does not occur if the index definitions in the CREATE TABLE definition are commented out, i.e. the table has no indexes at the moment the DROP operation is executed. This suggests that it might be posisble to work around the problem by removing all indexes manually before attempting to DROP, but the wording of the documentation at https://nanosql.gitbook.io/docs/query/drop-table suggests that indexes should be removed automatically as part of the DROP operation.