Skip to content

Update odbc-api to 24.0.0#52

Merged
lovasoa merged 7 commits intomainfrom
depsupdate
Apr 12, 2026
Merged

Update odbc-api to 24.0.0#52
lovasoa merged 7 commits intomainfrom
depsupdate

Conversation

@lovasoa
Copy link
Copy Markdown
Collaborator

@lovasoa lovasoa commented Apr 11, 2026

Updates odbc-api to version 24.0.0 and fixes the resulting breaking change where BufferDesc::Binary had its length field renamed to max_bytes.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d4a0cd781f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

let username = var("PGUSER").ok().unwrap_or_else(whoami::username);
let username = var("PGUSER")
.ok()
.unwrap_or_else(|| whoami::username().unwrap_or_default());
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid defaulting Postgres username to empty string

When PGUSER is unset, this fallback now calls whoami::username().unwrap_or_default(). In whoami 2.x username() is fallible, so any lookup error produces ""; the connection startup path always sends username: Some(&options.username) (see postgres/connection/establish.rs), so an empty username is sent to the server and pgpass matching for the real user is skipped. This creates a concrete connection/auth regression in environments where OS username discovery fails (for example restricted/sandboxed runtimes).

Useful? React with 👍 / 👎.

@lovasoa lovasoa merged commit 88aab3b into main Apr 12, 2026
66 checks passed
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.

1 participant