Update database.php

This commit is contained in:
Namhyeon Go 2018-03-05 01:59:56 +09:00 committed by GitHub
parent 28319050a6
commit 0caf14ff8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,13 @@ if(!function_exists("exec_stmt_query")) {
} }
} }
// alias sql_query from exec_stmt_query
if(!function_exists("sql_query")) {
function sql_query($sql, $bind=array()) {
return exec_stmt_query($sql, $bind);
}
}
if(!function_exists("get_dbc_object")) { if(!function_exists("get_dbc_object")) {
function get_dbc_object($renew=false) { function get_dbc_object($renew=false) {
global $dbc; global $dbc;