Skip to content

Releases: timmit-nl/db-mysql

Release list

v12.3.0

Choose a tag to compare

@timmit-nl timmit-nl released this 16 Oct 12:02
abad676

What's Changed

New

  • DB::getAffectedRows() returns the number of rows affected by the last write query.
  • Configurable matched-row reporting: new $useFoundRows argument on new DB() and DB::loadConfig(). When enabled, the affected-row count of an UPDATE includes matching rows whose values did not change.

Fixes

  • Where\Param: boolean values are now converted to 1 and 0. Previously false became an empty string, which resulted in invalid SQL (e.g. WHERE `field` = ). Booleans inside inArray() benefit as well. (#4)

Maintenance

  • Development tooling moved to PHPStan 2.2 with phpstan-strict-rules and phpstan-deprecation-rules 2.0. Loose comparisons were made strict and a few type annotations corrected; there is no intended change in runtime behaviour. Only require-dev changed, so users of the package are not affected. (#3)
  • CI moved from GitLab CI to GitHub Actions, with an overview of all check results on every run. (#1)
  • Added a README with installation, usage and development instructions. (#5)

Pull requests

Full Changelog: v12.0.1...v12.3.0