Skip to content

[5.6] Fix whereTime method for PostgresGrammar with correct casting.#23323

Merged
taylorotwell merged 1 commit into
laravel:5.6from
pinguinjkeke:5.6-postgres
Feb 27, 2018
Merged

[5.6] Fix whereTime method for PostgresGrammar with correct casting.#23323
taylorotwell merged 1 commit into
laravel:5.6from
pinguinjkeke:5.6-postgres

Conversation

@pinguinjkeke

@pinguinjkeke pinguinjkeke commented Feb 27, 2018

Copy link
Copy Markdown
Contributor

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

Currently ->whereTime() throws an SQL grammar error, so it doesn't break anything:

ERROR: syntax error at or near "time"

It's a bugfix. So I think it should be merged to current LTS 5.5 branch too, I think.

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

@sisve

sisve commented Feb 27, 2018

Copy link
Copy Markdown
Contributor

Could we get the PR for 5.5 reopened and merged too? #23318

@pinguinjkeke

Copy link
Copy Markdown
Contributor Author

@sisve yeah, it would be cool

@taylorotwell taylorotwell merged commit 65b6ad5 into laravel:5.6 Feb 27, 2018
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