This error is returned when attempting to create a View to query event nodes that have a date later than today. I set the filter for the date field to be greater than "now" as Date default. Once I save the change, the error occurs.

Thank you in advance for your help.

Comments

jgiboney’s picture

Issue tags: +date filter
StatusFileSize
new19.39 KB

As I am working on the same issue, I have noticed that the column names are not included in the query when using >, >=, <, or <= (see screen shot). If I use is empty or is not empty, the column names are included in the query.

damien tournoud’s picture

That looks like a Views bug.

cosmicdreams’s picture

I ran into this issue running a minimal drupal installation on MS SQL Server 2008 R2 + Apache. The error I received was slightly different. It was:

PDOException: SQLSTATE[42000]: [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near ')'.: SELECT TOP(1) * FROM {menu_router} WHERE path IN () ORDER BY fit DESC; Array ( ) in menu_get_item() (line 450 of C:\xampp\htdocs\includes\menu.inc).

I think these might be related.

artusamak’s picture

Can you export the view that you are using + the modules that you enabled.

artusamak’s picture

Status: Active » Postponed (maintainer needs more info)
artusamak’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)