Skip to content

v2.5.2

Choose a tag to compare

@nanasess nanasess released this 09 Oct 08:14
c8f7688

Highlights

Bug fixes

  • pgsql: Support PgSql\Connection / PgSql\Result objects returned on PHP 8.1+ (#7, #8)
  • pgsql: Fix getTableConstraintDefinition() / tableInfo() failing on PostgreSQL 12+ (#11)
  • mysqli: Return an MDB2_Error instead of throwing mysqli_sql_exception on SQL and connection errors on PHP 8.1+ (#10)
  • sqlite3: Map native errors to MDB2 error codes. This also fixes nextID() failing to create sequences on demand on PHP 8 (#9)
  • sqlite3: Fix listTableFields() dropping REAL columns and columns declared with an inline UNIQUE constraint (#6, #12)
  • sqlite3: Fix tableInfo() failing on tables with an inline PRIMARY KEY (#13)
  • sqlite3: Fix alterTable() re-creating DECIMAL(p,s) columns as DECIMAL(p,s,s) (#14)

Behavior change

  • On PHP 8.1+, the mysqli driver no longer throws mysqli_sql_exception on SQL errors. As with the other drivers, check the returned MDB2_Error instead. The mysqli_report() setting is left unchanged.

Other

  • Add a PHPUnit test suite and GitHub Actions CI (PHP 7.4–8.5 × PostgreSQL / MySQL / SQLite3) (#15)

What's Changed

  • fix: Add REAL type to SQLite column type regex in _getTableColumns by @nobuhiko in #6
  • Support PgSql\Connection objects in pgsql driver (PHP 8.1+) by @seasoftjapan in #7
  • fix: Support PgSql\Result objects in pgsql driver (PHP 8.1+) by @nanasess in #8
  • test: Add unit tests and CI for pgsql/mysqli/sqlite3 by @nanasess in #15
  • fix: Fix known bugs found by the tests (#9–#14) by @nanasess in #16

New Contributors

Full Changelog: 2.5.1...2.5.2