From 1de809b3bcc9f250c6f2ab54e4f3a322199b9586 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 8 Jan 2020 22:33:33 +0900 Subject: [PATCH] Update database.php --- system/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/database.php b/system/database.php index 9b41a67..08fce21 100644 --- a/system/database.php +++ b/system/database.php @@ -625,7 +625,7 @@ if(!check_function_exists("get_bind_to_sql_select")) { foreach($tablenames as $_tablename) { $separated_sqls[] = sprintf($sql, $s1, $_tablename, $s3, $s4, $s5); } - $sql = sprintf("%s", implode(" union ", $separated_sqls)); + $sql = sprintf("(%s)", implode(") union all (", $separated_sqls)); } return $sql;