Automattic / HyperDB

HyperDB is an advanced database class that supports replication, failover, load balancing, and partitioning.
104 stars 22 forks source link

Improve last error handling #158

Closed sanmai closed 2 months ago

sanmai commented 2 months ago

What

See: https://plugins.trac.wordpress.org/changeset/3123906/hyperdb/trunk

Record the last_error closer to the queries so it's not lost and don't run 'SELECT FOUND_ROWS()' if the query has failed.

How

svn diff -c 3123906 https://plugins.svn.wordpress.org/hyperdb/trunk/ | patch -p1 --fuzz=3

Followed by:

php vendor/bin/phpcbf

Review steps

Please compare with the changeset above.

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

sanmai commented 2 months ago

Closing as duplicate of #156