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

Can't trunc date to current day in Oracle #1155

Closed
robertandrewbain opened this issue Feb 5, 2015 · 0 comments
Closed

Can't trunc date to current day in Oracle #1155

robertandrewbain opened this issue Feb 5, 2015 · 0 comments
Labels
bug
Milestone

Comments

@robertandrewbain
Copy link
Member

@robertandrewbain robertandrewbain commented Feb 5, 2015

In Oracle TRUNC(some_date) will remove the time element from the date. TRUNC(some_date, 'day') however, will return the start of the week, which is what you get if you call SQLExpressions.datetrunc(DatePart.day, someDateTimePath). IMO, this is poor naming on Oracle's part, however I would have expected the SQL to manifest to be TRUNC(some_date, 'dd'), or for DatePart to include further values so that TRUNC(some_date, 'dd') was attainable, or better yet that TRUNC(some_date) with no time component was supported.

@timowest timowest added the bug label Feb 5, 2015
@timowest timowest added this to the 4.0.0 milestone Feb 7, 2015
@timowest timowest added the progress label Feb 7, 2015
@timowest timowest removed the progress label Mar 13, 2015
@timowest timowest modified the milestones: 3.6.2, 4.0.0 Mar 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.