Update database.php

This commit is contained in:
Namhyeon Go 2019-02-26 18:23:53 +09:00 committed by GitHub
parent fc30285fd0
commit d357ec257a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,11 +92,17 @@ if(!check_function_exists("get_db_binded_param")) {
if(!check_function_exists("get_db_binded_sql")) {
function get_db_binded_sql($sql, $bind) {
$binded_sql = false;
if(loadHelper("string.utils")) {
$exps = multi_str_split($sql, array(" ", "<>", ">=", "<=", "=", "(", ")", "\r\n", "\n", "\t"));
foreach($exps as $k=>$v) {
$exps[$k] = get_db_binded_param($v, $bind);
}
return implode("", $exps);
$binded_sql = implode("", $exps);
}
return $binded_sql;
}
}