// Determine the method of insertion.
$queryTitle = $method == 'replace' ? 'REPLACE' : ($method == 'ignore' ? 'INSERT IGNORE' : 'INSERT');
smf_db_error_backtrace($insertRows);
smf_db_error_backtrace('
' . $queryTitle . ' INTO ' . $table . '(' . implode(', ', $indexed_columns) . ')
VALUES
' . implode(',
', $insertRows));
// Do the insert.
$smcFunc['db_query']('', '
' . $queryTitle . ' INTO ' . $table . '(' . implode(', ', $indexed_columns) . ')
VALUES
' . implode(',
', $insertRows),
array(
'security_override' => true,
),
$connection
);