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

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