Skip to content

datestyle workaround - https://github.com/r-dbi/RPostgres/issues/287 - #288

Merged
krlmlr merged 2 commits into
r-dbi:masterfrom
baderstine:dbconnect_datestyle
Jan 22, 2021

Conversation

@baderstine

@baderstine baderstine commented Jan 21, 2021 •

Copy link
Copy Markdown
Contributor

add datestyle workaround in dbConnect, closes #287

@krlmlr krlmlr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into it!

Comment thread R/PqConnection.R Outdated
on.exit(dbDisconnect(conn))

# set datestyle workaround - https://github.com/r-dbi/RPostgres/issues/287
dbExecute(conn, "SET datestyle to iso, mdy;")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The semicolon feels unnecessary.

Suggested change
dbExecute(conn, "SET datestyle to iso, mdy;")
dbExecute(conn, "SET datestyle to iso, mdy")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed in latest commit.

@krlmlr
krlmlr merged commit 192a451 into r-dbi:master Jan 22, 2021
@krlmlr

krlmlr commented Jan 22, 2021

Copy link
Copy Markdown
Member

Thanks!

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Postgres returning bad dates, related to datestyle?

2 participants