Update database.php

This commit is contained in:
Namhyeon Go 2018-03-27 10:59:12 +09:00 committed by GitHub
parent 6dea7e0502
commit b49e596206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ if(!function_exists("get_dbc_object")) {
}
}
if(!function_exists("get_binded_sql")) {
if(!function_exists("get_db_binded_sql")) {
function get_binded_sql($sql, $bind) {
if(count($bind) > 0) {
$bind_keys = array_keys($bind);
@ -67,9 +67,9 @@ if(!function_exists("get_binded_sql")) {
if(!function_exists("get_db_stmt")) {
function get_db_stmt($sql, $bind=array(), $bind_pdo=false, $show_sql=false) {
$sql = !$bind_pdo ? get_binded_sql($sql, $bind) : $sql;
$sql = !$bind_pdo ? get_db_binded_sql($sql, $bind) : $sql;
$stmt = get_dbc_object()->prepare($sql);
if($show_sql) {
var_dump($sql);
}