From 5db82019c5801f411eb5957b8cacfef3e91db02f Mon Sep 17 00:00:00 2001 From: jsatoh Date: Sat, 14 Apr 2012 14:51:14 +0000 Subject: [PATCH] 2012-04-14 Junichi Satoh * include/functions_tags.php: Fixed SQL error with PostgreSQL. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5976 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/include/functions_tags.php | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 69133f6382..890584efa6 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2012-04-14 Junichi Satoh + + * include/functions_tags.php: Fixed SQL error with PostgreSQL. + 2012-04-14 Junichi Satoh * pandoradb.postgreSQL.sql: Fixed database creation failure with diff --git a/pandora_console/include/functions_tags.php b/pandora_console/include/functions_tags.php index 0f59283965..a8895e92ad 100644 --- a/pandora_console/include/functions_tags.php +++ b/pandora_console/include/functions_tags.php @@ -53,9 +53,11 @@ function tags_search_tag ($tag_name_description = false, $filter = false, $only_ if ($filter !== false){ switch ($config["dbtype"]) { case "mysql": - case "postgresql": $result = db_get_all_rows_sql ($sql . ' LIMIT ' . $filter['offset'] . ',' . $filter['limit']); break; + case "postgresql": + $result = db_get_all_rows_sql ($sql . ' OFFSET ' . $filter['offset'] . ' LIMIT ' . $filter['limit']); + break; case "oracle": $result = oracle_recode_query ($sql, $filter, 'AND', false); if ($components != false) {