Skip to content

Commit

Permalink
Update database.php
Browse files Browse the repository at this point in the history
  • Loading branch information
gnh1201 authored Oct 10, 2019
1 parent f36b518 commit eadb4be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ function json_decode_to_assoc($data) {

// temporary table
if(!check_function_exists("exec_db_temp_start")) {
function exec_db_temp_start($sql, $bind, $options=array()) {
function exec_db_temp_start($sql, $bind=array(), $options=array()) {
$_tablename = make_random_id();
$_sql = sprintf("create temporary table if not exists %s as (%s)", $_tablename, get_db_binded_sql($sql, $bind));
return (exec_db_query($_sql) ? $_tablename : false);
Expand Down

0 comments on commit eadb4be

Please sign in to comment.