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.5] Fix PostgresGrammar whereTime method with correct casting. #23318

Merged
merged 1 commit into from
Feb 27, 2018
Merged

[5.5] Fix PostgresGrammar whereTime method with correct casting. #23318

merged 1 commit into from
Feb 27, 2018

Conversation

pinguinjkeke
Copy link
Contributor

Similar as whereDate, whereTime should cast timestamp to time like created_at::time.

It should be merged to 5.6 and master branches too.

Link: https://www.postgresql.org/docs/9.6/static/functions-datetime.html

@pinguinjkeke pinguinjkeke changed the title Fix whereTime method for PostgresGrammar with correct casting. [5.5] Fix whereTime method for PostgresGrammar with correct casting. Feb 27, 2018
@pinguinjkeke pinguinjkeke changed the title [5.5] Fix whereTime method for PostgresGrammar with correct casting. [5.5] Fix PostgresGrammar whereTime method with correct casting. Feb 27, 2018
@sisve
Copy link
Contributor

sisve commented Feb 27, 2018

What is the current behavior? What does this change? How can we be sure that this wouldn't break existing Laravel installations?

@pinguinjkeke
Copy link
Contributor Author

@sisve Hello. Currently ->whereTime throws an SQL grammar error:

ERROR:  syntax error at or near "time"

So it cannot break something that already broken ;)

@taylorotwell
Copy link
Member

Wrong branch. 5.6 is the current release.

@pinguinjkeke
Copy link
Contributor Author

@taylorotwell It's a bugfix. Shouldn't it be merged to current LTS version?

From Laravel contribution doc:
All bug fixes should be sent to the latest stable branch or to the current LTS branch (5.5). Bug fixes should never be sent to the master branch unless they fix features that exist only in the upcoming release.

@taylorotwell
Copy link
Member

Whoops. Forgot 5.5 is an LTS 😆

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.

3 participants