Skip to content

Conversation

@jennybc
Copy link
Member

@jennybc jennybc commented Dec 17, 2025

Fixes #539

Comment on lines +165 to +167
if (idx_[0].size() > 0) {
columns_ = idx_[0].size() - 1;
}
Copy link
Member Author

@jennybc jennybc Dec 17, 2025

Choose a reason for hiding this comment

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

Matching the equivalent guard seen here:

if (idx_[0].size() > 0) {
columns_ = idx_[0].size() - 1;
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Which was introduced in edd1f31 to fix #316 (hard crash when n_max = 0 and col_names is a character vector).

@jennybc jennybc merged commit 8c55270 into main Dec 17, 2025
18 checks passed
@jennybc jennybc deleted the connection-n-max-zero-explicit-col-names branch December 17, 2025 20: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.

n_max = 0 / col_names: crashes R when reading from a remote connection

2 participants