phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
716 core / general major always 2012-06-10 21:07 2012-06-10 21:07
catranch  
 
normal  
new 5.7.1 (stable)  
open  
none  
none  
SQL error on DELETE record
SQL DELETE query generated in class lines 2777 through 2778
contains syntax error (1065) if key field is named "index".
Attempt to delete a row from a table in which the key field is named "index".
Enclose key field's name in back-quotes as follows:

$query = 'DELETE FROM '.$this->tb.' WHERE (`'.$this->key.'` = '.$this->key_delim.$this->rec.$this->key_delim.')';

There are no notes attached to this bug.