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) {