Skip to content

Conversation

devnexen
Copy link
Member

No description provided.

@devnexen devnexen linked an issue Mar 26, 2025 that may be closed by this pull request
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Looks reasonable

return;
}
zend_string *zquery = zend_string_alloc(ZSTR_LEN(tmp) + 1, false);
zend_string *zquery = zend_string_alloc(ZSTR_LEN(tmp) + 2, false);
Copy link
Member

Choose a reason for hiding this comment

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

Can we have a comment for why this is +2?

Copy link

Choose a reason for hiding this comment

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

If the input string does not end with a linefeed, space is required for the input string plus a linefeed plus the final nul byte.

Copy link
Member Author

@devnexen devnexen Mar 26, 2025

Choose a reason for hiding this comment

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

She probably got it :) it was more a request than a question I believe, so we do not forget months later.

@rperske
Copy link

rperske commented Mar 26, 2025

Thank you so much for your ultra-quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pg_copy_from no longer accepts linefeed

3 participants