Repository navigation
v2.5.2
Highlights
Bug fixes
- pgsql: Support
PgSql\Connection/PgSql\Resultobjects 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_exceptionon 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()droppingREALcolumns and columns declared with an inlineUNIQUEconstraint (#6, #12) - sqlite3: Fix
tableInfo()failing on tables with an inlinePRIMARY KEY(#13) - sqlite3: Fix
alterTable()re-creatingDECIMAL(p,s)columns asDECIMAL(p,s,s)(#14)
Behavior change
- On PHP 8.1+, the mysqli driver no longer throws
mysqli_sql_exceptionon SQL errors. As with the other drivers, check the returned MDB2_Error instead. Themysqli_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
- @nobuhiko made their first contribution in #6
- @seasoftjapan made their first contribution in #7
Full Changelog: 2.5.1...2.5.2