Where clause with Date Error

sql parser for various databases

Where clause with Date Error

Postby robin » Thu Aug 13, 2009 10:44 am

James,

Using latest C#.net parser version and setting database vendor to Ms Access, the following code:

SELECT [T1].[F1], [T1].[F2], [T1].[F3] FROM [T1] WHERE [T1].[F3] = #4/1/2008 3:09:29 PM#

produces the following error message from the parser (result code of 1).

3(1,78) expected token:; ) * + , - / = > WHERE HAVING AND OR NOT ON JOIN FROM GROUP ORDER UNION

Of course [T1].[F3] is of datetime datatype. Oddly, if I change the # to apostrophes (') around the date in the Where clause, the parser will work. Access however uses the # around dates and won't execute with the apostrophes around the date (does work in Access with the # around the date).

If this is a parser error, please send me a fixed version.

Thanks
Robin
robin
 
Posts: 15
Joined: Wed Mar 18, 2009 3:39 pm

Re: Where clause with Date Error

Postby james » Mon Aug 17, 2009 9:11 pm

GSP doesn't support # around dates of ACCESS, please PM your Order number so we can start a ticket to fix this bug in time.
james
Site Admin
 
Posts: 453
Joined: Tue Mar 15, 2005 5:16 am

Re: Where clause with Date Error

Postby robin » Mon Jun 28, 2010 4:30 pm

When is this expected to be fixed. I am displaying color coded query statement using a rich textbox and your color formatting options but since it won't parse correctly, I get single color making the user believe there is a syntax error. Really could use this soon.

Thanks,
Robin
robin
 
Posts: 15
Joined: Wed Mar 18, 2009 3:39 pm

Re: Where clause with Date Error

Postby james » Sun Jul 18, 2010 9:45 pm

Fixed in version 1.12.13
james
Site Admin
 
Posts: 453
Joined: Tue Mar 15, 2005 5:16 am

Re: Where clause with Date Error

Postby robin » Mon Jul 19, 2010 11:04 am

Great. When will this version be downloadable?
robin
 
Posts: 15
Joined: Wed Mar 18, 2009 3:39 pm

Re: Where clause with Date Error

Postby james » Fri Jul 23, 2010 4:24 am

james
Site Admin
 
Posts: 453
Joined: Tue Mar 15, 2005 5:16 am


Return to General SQL Parser

Who is online

Users browsing this forum: No registered users and 1 guest

cron