From 0caf14ff8a07fbc75d7d0e9a84d76c6b28f15b6c Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 5 Mar 2018 01:59:56 +0900 Subject: [PATCH] Update database.php --- system/database.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/system/database.php b/system/database.php index 8cf69fd..b8da637 100644 --- a/system/database.php +++ b/system/database.php @@ -28,6 +28,13 @@ if(!function_exists("exec_stmt_query")) { } } +// alias sql_query from exec_stmt_query +if(!function_exists("sql_query")) { + function sql_query($sql, $bind=array()) { + return exec_stmt_query($sql, $bind); + } +} + if(!function_exists("get_dbc_object")) { function get_dbc_object($renew=false) { global $dbc;