Update database.mysql.cmd.php

This commit is contained in:
Namhyeon Go 2019-09-16 13:28:35 +09:00 committed by GitHub
parent 4512a7fdfc
commit 09da36cf36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@
* @brief MySQL(MariaDB) command line driver
*/
if(check_function_exists("exec_db_mysql_cmd_query")) {
if(!check_function_exists("exec_db_mysql_cmd_query")) {
function exec_db_mysql_cmd_query($sql, $bind) {
$result = false;
$config = get_config();
@ -30,7 +30,7 @@ if(check_function_exists("exec_db_mysql_cmd_query")) {
}
}
if(check_function_exists("exec_db_mysql_cmd_fetch_all")) {
if(!check_function_exists("exec_db_mysql_cmd_fetch_all")) {
function exec_db_mysql_cmd_fetch_all($sql, $bind) {
$result = false;