Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 May 2012 at 12:18 UTC
Updated:
29 Oct 2014 at 01:32 UTC
Jump to comment: Most recent
Comments
Comment #1
sambonner commentedCan confirm this is an issue for me in views-7.x-3.6. Rolling back to 3.5 brings the views back.
Have tested on 3.7 and 3.x-dev and the issue is present on both. Running drupal 7.21.
Any solutions available for this, as it stands I cannot run the latest views security release due to this problem.
Comment #2
Thangobrind commentedsubscribe
Comment #3
Mołot commentedIf it was working in past, it deserve regression tag.
Would you care to provide full SQL generated by views? I'm not so fluent with views arcana, but not bad on SQL level, maybe I'll be able to get some idea what's wrong.
Comment #4
xmacinfoI do have the same type of error when using the aggregation feature of Views:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS field_data_field_geolocation_, field_data_field_office_telephone.field_office' at line 1The AS part is truncating the field name:
AS field_data_field_geolocation_,
Yes, in that example I am using the addressfield and geolocation modules.
To fix you need to delete and add again the field (here geolocation), and select some columns.
Comment #5
radiobuzzer commentedI confirm that when Aggregation is enabled, somehow the argument of the AS clause are truncated, resulting into an invalid SQL query. Here is my example:
Before aggregation
After aggregation
Error given
I am also using field collections as you can see
Comment #6
alphex commentedI'm having this issue also, but the only things different between my dev box (where it works) and production (where I'm seeing the problem), are the MYSQL versions.
Dev = PHP 5.3.10-1ubuntu3.6 && MYSQL 5.5.31-0ubuntu0.12.04.2
Prod = PHP 5.3.2-1ubuntu4.11 && MYSQL 5.1.41-3ubuntu12.10
Comment #7
capellicI was hoping that reverting from 3.5 to 3.7 would fix the issue, but I'm still having the problem:
Comment #8
siramsay commentedIssue persists, trying to use aggregation
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS field_data_field_upload_image_, field_data_field_campaign_staff_pick.field_ca' at line 1Comment #9
siramsay commentedjust marking it as a duplicate of https://www.drupal.org/node/1809584 Turning aggregation on with existing image fields fails with SQLSTATE[42000]
#6 in that thread fixed the problem