Skip to content

Accept pointers to slices and maps in named queries (upstream #805). - #20

Merged
avgvi merged 5 commits into
masterfrom
fix/577-named-ptr-args
Oct 11, 2026
Merged

avgvi merged 5 commits into
masterfrom
fix/577-named-ptr-args

Conversation

@avgvi

@avgvi avgvi commented Oct 11, 2026

Copy link
Copy Markdown
Member

Merges upstream jmoiron/sqlx#805 by Xudong Cai with its original commit: a pointer to a slice batch-inserts instead of panicking in reflectx. Fixes upstream #577 and #729. A follow-up commit completes the pointer-to-map case, which the PR still left panicking, by dereferencing in bindNamedMapper and convertMapStringInterface. The test inserts through *[]struct, *map and *[]map.

Local run with Postgres 16, MySQL 8.4 and SQLite: 88 pass, 3 skip, 0 fail.

@avgvi
avgvi merged commit 153270f into master Oct 11, 2026
6 checks passed
@avgvi
avgvi deleted the fix/577-named-ptr-args branch October 11, 2026 04:19
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