Skip to content

Validate single row count for Row.Scan#6

Merged
mrj0 merged 2 commits intomainfrom
mj/single-row
Mar 20, 2025
Merged

Validate single row count for Row.Scan#6
mrj0 merged 2 commits intomainfrom
mj/single-row

Conversation

@mrj0
Copy link
Copy Markdown
Contributor

@mrj0 mrj0 commented Mar 20, 2025

stevenh and others added 2 commits March 20, 2025 15:39
Validate that a single row only is returned by queries used for Row.Scan.

This avoids unexpected results when the query has an issue such as a missing join criteria or limit in conjunction with functions which expect only on row returned e.g. Get(...).

Also:
* Fixed missing \n's for test output of ConnectAll.
@mrj0 mrj0 merged commit 2f07bba into main Mar 20, 2025
12 checks passed
@mrj0 mrj0 deleted the mj/single-row branch March 20, 2025 23:01
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