[ci skip] Merge pull request #5183 from ytetsuro/add_oci8_driver_write_type
add is_write_type method for merge query
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 3eb51f7..7efb373 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -1044,7 +1044,7 @@
*/
public function is_write_type($sql)
{
- return (bool) preg_match('/^\s*"?(SET|INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|TRUNCATE|LOAD|COPY|ALTER|RENAME|GRANT|REVOKE|LOCK|UNLOCK|REINDEX)\s/i', $sql);
+ return (bool) preg_match('/^\s*"?(SET|INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|TRUNCATE|LOAD|COPY|ALTER|RENAME|GRANT|REVOKE|LOCK|UNLOCK|REINDEX|MERGE)\s/i', $sql);
}
// --------------------------------------------------------------------