Skip to content

ext/mysqlnd: Use iterated struct and remove dulicate SET_AFFECTED_ROWS#21713

Open
kamil-tekiela wants to merge 2 commits intophp:masterfrom
kamil-tekiela:mysqlnd_result-fixes
Open

ext/mysqlnd: Use iterated struct and remove dulicate SET_AFFECTED_ROWS#21713
kamil-tekiela wants to merge 2 commits intophp:masterfrom
kamil-tekiela:mysqlnd_result-fixes

Conversation

@kamil-tekiela
Copy link
Copy Markdown
Member

No description provided.

@kamil-tekiela kamil-tekiela changed the title Use iterated struct and remove dulicate SET_AFFECTED_ROWS ext/mysqlnd: Use iterated struct and remove dulicate SET_AFFECTED_ROWS Apr 10, 2026
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very outdated and inaccurate comment

COPY_CLIENT_ERROR(&set->error_info, row_packet.error_info);
} else {
/* libmysql's documentation says it should be so for SELECT statements */
UPSERT_STATUS_SET_AFFECTED_ROWS(conn->upsert_status, set->row_count);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Huh? I don't see how this is set elsewhere

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

After each time this method is called, the caller sets it.

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.

2 participants