Skip to content

issue 1306: send in the datestyle to the connection#1312

Merged
arp242 merged 3 commits intolib:masterfrom
vmacdougal-hc:issue-1306/datestyle
Apr 3, 2026
Merged

issue 1306: send in the datestyle to the connection#1312
arp242 merged 3 commits intolib:masterfrom
vmacdougal-hc:issue-1306/datestyle

Conversation

@vmacdougal-hc
Copy link
Copy Markdown
Contributor

@vmacdougal-hc vmacdougal-hc commented Apr 2, 2026

Before version v1.11.0, lib/pq used to send in an ISO datestyle when creating a connection. That resulted in all connections through lib/pq returning timestamps in that style, which could then be parsed. Starting with version v1.11.0, that no longer happens, resulting in the connection defaulting to the database's connection. However, the parser is still expecting ISO date formats, which causes problems if the database uses a different format.

Send in the datestyle when creating the connection to ensure the dates return in the expected format.

Issue 1306

@arp242 arp242 merged commit 1f3e3d9 into lib:master Apr 3, 2026
14 checks passed
nars1 pushed a commit to YottaDB/YDBOcto that referenced this pull request Apr 8, 2026
This test uses the latest version of Go's pq library to communicate to
Octo. Since the test is not pinned to a specific version of pq, we may
get different output when pq is updated.

The default date format changed from YMD to MDY. See lib/pq#1312.

Example of a failing pipeline:
https://gitlab.com/YottaDB/DBMS/YDBOcto/-/jobs/13805744990.

This commit will fix the pipeline failures over the last couple of days.
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.

2 participants