Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 1 to 2 of 2 total |
Date Literals not working as expected |
Wed, Jul 16 2014 11:16 AM | Permanent Link |
Michael | Have this query:
Select BlockID, ResourceID, StartTime, EndTime from EventScheduleBlock where ScheduleDate is null and ScheduleDate >= '2014-07-16' and "ResourceID" = 0 Order by StartTime ScheduleDate is a date field. The query does not work, it gives this error: ElevateDB Error #700 An error was found in the statement at line 2 and column 48 (Expected Date or Timestamp expression but instead found '2014-07-16') However, this does work: Select BlockID, ResourceID, StartTime, EndTime from EventScheduleBlock where ScheduleDate is null and ScheduleDate >= Cast('2014-07-16' as Date) and "ResourceID" = 0 Order by StartTime However, the manual here.. http://www.elevatesoft.com/manual?action=viewtopic&id=edb2sql&topic=Date_Time_Types ..says it should, the way I read it. Is the bug in ElevateDB or the manual? Thanks, Michael |
Wed, Jul 16 2014 2:24 PM | Permanent Link |
Uli Becker | Michael,
ScheduleDate >= '2014-07-16' should be ScheduleDate >= date '2014-07-16' You have to tell EDB, that the string is a date. Uli |
This web page was last updated on Sunday, May 5, 2024 at 10:18 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |