Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authpdo: Add multi-rowset support and fix mybb test #2850

Merged
merged 4 commits into from Oct 10, 2019
Merged

Conversation

phy25
Copy link
Collaborator

@phy25 phy25 commented Sep 9, 2019

  • authpdo: add support for multi-rowset to _query
    This makes sure if user defined multiple query in one SQL, they are all executed rather than only the first one.
  • authpdo: fix mybb schema for MySQL 5.7+
    https://dev.mysql.com/doc/refman/5.7/en/upgrading-from-previous-series.html

    In MySQL 5.7.5, these SQL mode changes were made: ... Strict SQL mode for transactional storage engines (STRICT_TRANS_TABLES) is now enabled by default.

  • lock fetch PHPUnit version to 7 for PHP 5

One thing I am not sure is whether it's safe to use nextRowset() since I read about various support about this feature which make it sometimes broken.

Fixes #2841.

Remaining task is to adapt to nightly PHP 8: 439cabd, b53f188

This makes sure if user defined multiple query in one SQL, they are all executed rather than only the first one.
https://dev.mysql.com/doc/refman/5.7/en/upgrading-from-previous-series.html

> In MySQL 5.7.5, these SQL mode changes were made: ... Strict SQL mode for transactional storage engines (`STRICT_TRANS_TABLES`) is now enabled by default.

https://dev.mysql.com/doc/refman/5.7/en/data-type-defaults.html

> For data entry into a NOT NULL column that has no explicit DEFAULT clause, if an INSERT or REPLACE statement includes no value for the column, or an UPDATE statement sets the column to NULL, MySQL handles the column according to the SQL mode in effect at the time:
>
> If strict SQL mode is enabled, an error occurs for transactional tables and the statement is rolled back. For nontransactional tables, an error occurs, but if this happens for the second or subsequent row of a multiple-row statement, the preceding rows will have been inserted.
@phy25
Copy link
Collaborator Author

phy25 commented Sep 25, 2019

Ping: If anyone can give this a review, we can resolve the current failing tests 😄

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.

Broken Tests on Travis CI due to PHPUnit and MySQL
2 participants