Update database.php

This commit is contained in:
Namhyeon Go 2020-01-28 11:08:53 +09:00 committed by GitHub
parent 4e38e01c0e
commit 9463cc91e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1001,8 +1001,8 @@ if(!check_function_exists("exec_db_temp_create")) {
function exec_db_temp_create($schemes, $options=array()) {
$flag = false;
// set tablename
$tablename = "temp_" . make_random_id();
$_engine = get_value_in_array("engine", $options, false);
// set track information
$_tablename = exec_db_table_create(array(
@ -1016,6 +1016,9 @@ if(!check_function_exists("exec_db_temp_create")) {
$_sql = get_bind_to_sql_insert($_tablename, $_bind);
exec_db_query($_sql, $_bind);
// set variables
$_engine = get_value_in_array("engine", $options, false);
// create temporary table
$sql = get_bind_to_sql_create($schemes, array(
"tablename" => $tablename,