我安装了最新的 openX 广告服务器(发布服务器)和 postgres 9.x 版本。
成功安装和配置后,我登录并单击“统计”选项卡,我看到以下错误。
当我用 mysql 安装 openX 服务器时,我没有看到这个错误,有什么快速修复?
梨错误
MDB2 错误:未知错误 _doQuery:[错误消息:无法执行语句] [上次执行的查询:SELECT m.clientid AS advertiser_id,d.campaignid AS placement_id,s.ad_id AS ad_id,SUM(s.impressions) AS sum_views,SUM (s.clicks) AS sum_clicks,SUM(s.revenue) AS sum_revenue, m.campaignid || IF(长度(market_advertiser_id) > 0, ('_' || market_advertiser_id || ' '), ' ') || 广告宽度 || 'x' || ad_height AS ad_id,( m.campaignid || IF( LENGTH(market_advertiser_id) > 0, ('_' || market_advertiser_id || ' '), '') || 广告宽度 || 'x' || ad_height ) AS pkey FROM "ox_ext_market_stats" AS s INNER JOIN "ox_banners" AS d ON (d.bannerid=s.ad_id) INNER JOIN "ox_zones" AS z ON (z.zoneid=s.zone_id) INNER JOIN "ox_campaigns" AS m ON (m.campaignid=d.campaignid) INNER JOIN "ox_affiliates" AS p ON (p.affiliateid=z.affiliateid) INNER JOIN "ox_clients" AS a ON (a.clientid=m.clientid) WHERE s.ad_id IN (1,2) AND a.type = 1 AND s.zone_id <> 0 AND s.date_time>='2011-02-22 00:00:00' AND s.date_time<='2011-02-22 23: 59:59' 按广告客户 ID、展示位置 ID、pkey 分组]
[本机消息:错误:列“s.ad_id”必须出现在 GROUP BY 子句中或在字符 65 处的聚合函数中使用]
梨错误
MDB2 错误:未知错误 _doQuery:[错误消息:无法执行语句] [上次执行的查询:SELECT m.clientid AS advertiser_id,d.campaignid AS placement_id,s.ad_id AS ad_id,SUM(s.impressions) AS sum_views,SUM (s.clicks) AS sum_clicks,SUM(s.revenue) AS sum_revenue, m.campaignid || IF(长度(market_advertiser_id) > 0, ('_' || market_advertiser_id || ' '), ' ') || 广告宽度 || 'x' || ad_height AS ad_id,( m.campaignid || IF( LENGTH(market_advertiser_id) > 0, ('_' || market_advertiser_id || ' '), '') || 广告宽度 || 'x' || ad_height ) AS pkey FROM "ox_ext_market_stats" AS s INNER JOIN "ox_banners" AS d ON (d.bannerid=s.ad_id) INNER JOIN "ox_campaigns" AS m ON (m.campaignid=d.campaignid) INNER JOIN "ox_clients" AS a ON (a.clientid=m.clientid) WHERE s.ad_id IN (1,2) AND s.zone_id = 0 AND a.type = 1 AND s.date_time>='2011-02-22 00:00:00 ' AND s.date_time<='2011-02-22 23:59:59' AND s.zone_id = 0 GROUP BY ads_id,placement_id,pkey]
[本机消息:错误:列“s.ad_id”必须出现在 GROUP BY 子句中或在字符 65 处的聚合函数中使用]