Commit 9be8c499 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic

Bug 1785985: remove prefix from db table before adding to ES queue

behatnotneeded

Change-Id: I1fa4b026234fb1cdc06786d864e6cc655870c85a
parent 74ed13b8
......@@ -1103,6 +1103,9 @@ function get_table_from_query($sql) {
$idsql = 'SELECT * FROM ' . $matches[2];
$type = 'update';
}
if (get_config('dbprefix')) {
$table = str_replace(get_config('dbprefix'), $table, '');
}
return array($type, $table, $idsql, $bindoffset);
}
......
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