Ignore:
Timestamp:
Jul 3, 2010, 2:16:12 PM (14 years ago)
Author:
nikrou
Message:

Bug 1754 fixed : The keyword AS is mandatory for alias in PostgreSQL queries
Merge from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/include/functions_tag.inc.php

    r6364 r6653  
    3737  // we can find top fatter tags among reachable images
    3838  $query = '
    39 SELECT tag_id, COUNT(DISTINCT(it.image_id)) counter
     39SELECT tag_id, COUNT(DISTINCT(it.image_id)) AS counter
    4040  FROM '.IMAGE_CATEGORY_TABLE.' ic
    4141    INNER JOIN '.IMAGE_TAG_TABLE.' it ON ic.image_id=it.image_id'.get_sql_condition_FandF
     
    224224  }
    225225  $query = '
    226 SELECT t.*, count(*) counter
     226SELECT t.*, count(*) AS counter
    227227  FROM '.IMAGE_TAG_TABLE.'
    228228    INNER JOIN '.TAGS_TABLE.' t ON tag_id = id
Note: See TracChangeset for help on using the changeset viewer.