Update database.php

This commit is contained in:
Namhyeon Go 2020-01-28 13:53:10 +09:00 committed by GitHub
parent cee6509dfa
commit dcebd777af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,9 +148,6 @@ if(!check_function_exists("exec_db_query")) {
$dbc = get_dbc_object();
$terms = explode(" ", trim($sql));
// before transaction
$dbc->beginTransaction();
// check sql insert or not
if($terms[0] == "insert") {
$stmt = get_db_stmt($sql, $bind, array(
@ -164,9 +161,6 @@ if(!check_function_exists("exec_db_query")) {
$flag = $stmt->execute();
}
// commit transaction
$dbc->commit();
// get errors
$errors = $stmt->errorInfo();