Issue Details (XML | Word | Printable)

Key: CORE-3102
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Adriano dos Santos Fernandes
Reporter: Karol Bieniaszewski
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
Firebird Core

Not working example for buit-in function DATEADD in README.builtin_functions.txt

Created: 09/Aug/10 10:49 AM   Updated: 18/Jan/16 05:18 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Target: 2.5 RC3, 2.1.3, 2.1.4 and 2.5.0
QA Status: No test

 Description  « Hide
in file README.builtin_functions.txt

example for use function DATEADD is bad

select dateadd(-1 day for current_date) as yesterday
from rdb$database

word "for" is not valid

should be
select dateadd(-1 day to current_date) as yesterday
from rdb$database

 All   Comments   Change History   Subversion Commits      Sort Order: Descending order - Click to sort in ascending order
Paul Vinkenoog added a comment - 09/Aug/10 12:01 PM
Confirmed; this is an error in the example (a leftover from the initially implemented syntax, which was later corrected).
Moved to core team, as the README.*s are not within my jurisdiction ;-)