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

[5.6] Fix whereTime() on SQL Server #25316

Merged
merged 1 commit into from Aug 24, 2018
Merged

[5.6] Fix whereTime() on SQL Server #25316

merged 1 commit into from Aug 24, 2018

Conversation

staudenmeir
Copy link
Contributor

whereTime() doesn't work on SQL Server. There is no time() function:

User::whereTime('created_at', '12:34:56')->get();

// expected: select * from [users] where cast([created_at] as time) = '12:34:56'
// actual:   select * from [users] where time([created_at]) = '12:34:56'

@taylorotwell taylorotwell merged commit 947a4f8 into laravel:5.6 Aug 24, 2018
@staudenmeir staudenmeir deleted the where-time branch August 25, 2018 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants