i get a mysql error when adding a date argument of a cck field to a view. the error is the following:

user warning: 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 node_data_field_programm_datum_, node.sticky AS node_sticky, node_data_' at line 4 query: SELECT COUNT(*) FROM (SELECT node.nid AS nid, node_data_field_programm_datum.field_programm_datum_value AS node_data_field_programm_datum_field_programm_datum_value, node_data_field_programm_datum.field_programm_datum_value2 AS node_data_field_programm_datum_field_programm_datum_value2,
node_data_field_programm_datum. AS node_data_field_programm_datum_,
node.sticky AS node_sticky, ..........

it doesn't matter which granularity i choose - the error always appears because of this line:
node_data_field_programm_datum. AS node_data_field_programm_datum_,

which should look like this:
node_data_field_programm_datum.field_programm_datum_value3 AS node_data_field_programm_datum_field_programm_datum_value3,

any help would be appreciated

Comments

bundes’s picture

it looks like the error occurs because of a php upgrade from 5.1 to 5.2 so the "date php4 module" is no longer used

drupal 6.2, php 5.2.6, date 6.x.2.x-dev from 2008-06-05, views-6.x-2.0-beta3, cck-6.x-2.0-beta

bundes’s picture

tried a downgrade and the error also occurs with php 5.1.6

KarenS’s picture

Status: Active » Fixed

I just released a new 6.2-beta2 version for Date, so update to the latest code for Date and also get the latest -dev version of the Views module, which has some date-related changes that are needed for the Date views handling. If you use the Calendar module, get the new 6.2-beta2 version of that as well.

If you still have problems after that, open a new issue marked with the beta2 version so I know it's still a problem there.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.