Update database.php

This commit is contained in:
Namhyeon Go 2019-05-04 19:30:59 +09:00 committed by GitHub
parent c96e33350e
commit 1b97225cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -386,6 +386,8 @@ if(!check_function_exists("get_bind_to_sql_select")) {
$s1 .= "count(*) as cnt";
} elseif(!array_key_empty("getsum", $options)) {
$s1 .= sprintf("sum(%s) as sum", $options['getsum']);
} else {
$s1 .= "*";
}
// s1a: s1 additonal (set new fields)