2012-04-14 Junichi Satoh <junichi@rworks.jp>

* 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
This commit is contained in:
jsatoh 2012-04-14 14:51:14 +00:00
parent 7921fca578
commit 21e7df6936
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-04-14 Junichi Satoh <junichi@rworks.jp>
* include/functions_tags.php: Fixed SQL error with PostgreSQL.
2012-04-14 Junichi Satoh <junichi@rworks.jp>
* pandoradb.postgreSQL.sql: Fixed database creation failure with

View File

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