berlindb / core

All of the required core code
MIT License
254 stars 28 forks source link

Table: fix format of query inside index_exists(). #90

Closed JJJ closed 3 years ago

JJJ commented 3 years ago

This change prevents quotes around the $column value by not preparing it, and also by making sure its value is only 1 of 2 intended columns: Key_name and Column_name.

This fixes incorrectly generated SQL, allowing this method to function as intended instead of incorrectly returning no results.

Props @ashleyfae. Fixes #87.