Commit 4ac7fcb8 by pupi1985

Turned REPLACE statements into INSERT..ON DUPLICATE KEY UPDATE in db/metas.php

parent 3660569c
......@@ -144,7 +144,8 @@
*/
{
qa_db_query_sub(
'REPLACE ^'.$metatable.' ('.$idcolumn.', title, content) VALUES ($, $, $)',
'INSERT INTO ^' . $metatable . ' (' . $idcolumn . ', title, content) VALUES ($, $, $) ' .
'ON DUPLICATE KEY UPDATE content = VALUES(content)',
$idvalue, $title, $content
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment