[Libreoffice-bugs] [Bug 136475] Libre Base SQL Syntax Unrecognized For FireBird DateAdd() Function

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Sep 5 06:35:03 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=136475

Robert Großkopf <robert at familiegrosskopf.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |robert at familiegrosskopf.de

--- Comment #2 from Robert Großkopf <robert at familiegrosskopf.de> ---
It will work right in direct SQL mode.

It won't run with the query-GUI, because the query-GUI expects a mask like
'day' around the strings. You could use 
CAST( CURRENT_DATE AS DATE ) + 90 
instead.
Select * From Entitlements
Where EXPIRATIONDATE <= CAST( CURRENT_DATE AS DATE ) + 90 

Together with casting the current_date as date it will work in query-GUI, but
will show the value as integer. So you have to format it afterwards.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200905/d790fcc2/attachment.htm>


More information about the Libreoffice-bugs mailing list