Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CURRENT_DATE is undocumented in Firebird 2.5 Language Reference Update [DOC79] #89

Closed
firebird-automations opened this issue May 15, 2012 · 3 comments

Comments

@firebird-automations
Copy link

Submitted by: pl1 (pl1)

CURRENT_DATE is undocumented in the documentation, there is no CURRENT_DATE in chapter 11 : Context variables

http://www.firebirdsql.org/file/documentation/reference_manuals/reference_material/html/langrefupd25-variables.html

Can it be used for updating a database entry? For example

UPDATE tablename SET lastmodified=CURRENT_DATE WHERE ...

or do i have always to use

UPDATE tablename SET lastmodified=CURRENT_TIMESTAMP WHERE ...

if lastmodified is a timestamp field and i only want the date in the field updated, but time should stay 00:00 ?

@firebird-automations
Copy link
Author

Commented by: @paulvink

CURRENT_DATE already existed in InterBase, that's why it is not documented in the Language Reference *Update*.
It will be in the full Language Reference, of course.

As for your question: yes, you can assign CURRENT_DATE (or any date expression, for that matter) to a TIMESTAMP field.
But next time, please ask this type of question in the firebird-support group.
The tracker is for bug reports and requests for new features, enhancements etc.

@firebird-automations
Copy link
Author

Commented by: @paulvink

Not a bug.

@firebird-automations
Copy link
Author

Modified by: @paulvink

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Won't Fix [ 2 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants