From 7eddd7eccbe53c1c3ed9f960ca7d252bdd4c4b4d Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 30 Dec 2019 16:56:25 +0900 Subject: [PATCH] Update database.php --- system/database.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/database.php b/system/database.php index 3c494b8..49cd231 100644 --- a/system/database.php +++ b/system/database.php @@ -746,6 +746,9 @@ if(!check_function_exists("exec_db_table_create")) { function exec_db_table_create($schemes, $tablename, $options=array()) { $_tablename = false; + $_prefix = get_value_in_array("prefix", $options, ""); + $_suffix = get_value_in_array("suffix", $options, ""); + $setindex = get_value_in_array("setindex", $options, false); $sql = get_bind_to_sql_create($schemes, array( "tablename" => $tablename @@ -756,7 +759,7 @@ if(!check_function_exists("exec_db_table_create")) { $sql = sprintf("create index %s on %s (%s)", $k, $tablename, implode(", ", $v)); exec_db_query($sql); } - $_tablename = $tablename; + $_tablename = sprintf("%s%s%s", $_prefix, $tablename, $_suffix); } return $_tablename;