Update database.php

This commit is contained in:
Namhyeon Go 2019-10-15 17:32:00 +09:00 committed by GitHub
parent d5318a298f
commit 3fd7591968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -672,10 +672,10 @@ if(!check_function_exists("get_timediff_on_query")) {
}
// temporary table
function exec_db_temp_create($scheme=array(), $options=array()) {
function exec_db_temp_create($schemes=array(), $options=array()) {
$_tablename = make_random_id();
$_schemes = array();
foreach($scheme as $k=>$v) {
foreach($schemes as $k=>$v) {
if(is_array($v)) {
$_schemes[] = sprintf("%s %s(%s)", $k, $v[0], $v[1]);
}