PHP-MySQLi-Database-Class icon indicating copy to clipboard operation
PHP-MySQLi-Database-Class copied to clipboard

Add DESCRIBE to rawAddPrefix

Open Dreller opened this issue 4 years ago • 1 comments

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 avatar Feb 07 '21 19:02 Dreller

#951

Dreller avatar Feb 07 '21 19:02 Dreller

thank you!

avbdr avatar Sep 13 '22 15:09 avbdr