mirror of
https://github.com/vrana/adminer.git
synced 2025-08-19 04:41:25 +02:00
MySQL: Speed up updating rows without numeric or UTF-8 primary key
This commit is contained in:
@@ -143,7 +143,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||
// find all used ids
|
||||
$ids = array();
|
||||
foreach ($rows as $row) {
|
||||
$ids[$row[$key]] = exact_value($row[$key]);
|
||||
$ids[$row[$key]] = q($row[$key]);
|
||||
}
|
||||
// uses constant number of queries to get the descriptions, join would be complex, multiple queries would be slow
|
||||
$descriptions = $this->_values[$table];
|
||||
|
Reference in New Issue
Block a user