Update database.php

This commit is contained in:
Namhyeon Go 2020-04-29 14:58:05 +09:00 committed by GitHub
parent 410f3a6890
commit f2f1c4e458
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -903,8 +903,8 @@ if(!is_fn("sql_query")) {
}
// get timediff
if(!is_fn("get_timediff_on_query")) {
function get_timediff_on_query($a, $b) {
if(!is_fn("get_db_timediff")) {
function get_db_timediff($a, $b) {
$dt = 0;
$sql = "select timediff(:a, :b) as dt";