ThingEngineer / PHP-MySQLi-Database-Class

Wrapper for a PHP MySQL class, which utilizes MySQLi and prepared statements.
Other
3.29k stars 1.35k forks source link

Add DESCRIBE to rawAddPrefix #950

Closed Dreller closed 1 year ago

Dreller commented 3 years ago

Trying to get all fields in a table, I have an error saying Undefined index 0 on MysqliDb.php, line 559. I am using rawQuery("DESCRIBE table-name");. Looks like rawAddPrefix is not able to extract the table name because it doesn't look for the keyword 'describe', as it does for from, into, update and join. This commis adds 'describe' in the list so we now can use DESCRIBE keyword and get all columns for a table.

Dreller commented 3 years ago

951

avbdr commented 1 year ago

thank you!