zendframework/zend-db
Zend\Db is a database abstraction layer for PHP, offering SQL builders, adapters, platform-specific quoting, and result set utilities. It supports multiple drivers and helps you write portable, secure queries while keeping low-level control when you need it.
#382 fixes Zend\Db\Sql\Expression to allow 0 value for parameter.
#395 fixes PHP 7.4 compatibility.
#392 fixes MetadataFeature to work with TableIdentifier.
#399 fixes accessing constraint metadata within the Oracle adapter.
#375 fixes detecting number of replacements in Zend\Db\Sql\Expression.
#377 allows any AdapterInterface instance in RowGateway.
#342 fixes deleting from aliased tables.
#386 fixes too strongly casting integer parameters in PDO adapter.
NOTE: this release introduces a potential BC break in Zend\Db\Adapter\Driver\Mysqli\Result::currentData with the change of default value from false to null (regression from 2.8). This was the previous behavior of version 2.8, changed in 2.9. This change may affect classes that extends Zend\Db\Adapter\Driver\Mysqli\Result.
Zend\Db\Sql\TableIdentifier in DDLAbstractResultSet::initialize() at PHP 7.2AbstractResultSet::current() to return null on empty arrayprepareStatementForSqlObject on a Select with a sub-Select that has limit and/or offset setResultSet in AbstractTableGateway#295 fix error when datasource passed to AbstractResultSet::initialize() is empty array at PHP 7.2 environment
#300 fix error for nested queries inside field parameters
#301 fix for issue with set fields that exists in different tables in one query
#304 fix PDO bind parameter name to use field name with extended charset (PDO only supports alphanumeric and underscore for placeholder/parameter names)
:) character when using the PDO adapter. (The leading colon is not technically necessary, as the adapter will prefix for you; however, this ensures portability with vanilla PDO.)#289 reverts a change introduced in 2.9.0 and modifies the behavior of the PDO adapter slightly to remove a regression. In 2.9.0, when binding parameters with names that contained characters not supported by PDO, we would pass the parameter names to md5(); this caused a regression, as the SQL string containing the parameter name was not also updated.
This patch modifies the behavior during a bind-operation to instead raise an exception if a parameter name contains characters not supported by PDO.
AFTER support in ALTER TABLE syntax for MySQLdb2_prepareLIMIT OFFSET for db2ORDER BY syntax[0-9a-zA_Z_]; as such, the driver now hashes the parameter names using md5() in order to ensure compatibility with other drivers.ResultSet with array valueslastInsertIdcount() with PHP 7.2Zend\Db\Sql\Join for creating and aggregating JOIN specifications. This is now consumed by all Zend\Db\Sql implementations in order to represent JOIN statements.AbstractTableGateway::update; you can now pass an array of specifications via a third argument to the method.Zend\Db\ConfigProvider, which maps the AdapterInterface to the AdapterServiceFactory, and enables the AdapterAbstractServiceFactory.Zend\Db\Module, which does the same, for a zend-mvc context.Pgsql adapter to allow passing the connection charset; this can be done with the charset option when creating your adapter.Zend\Db\Sql\Insert when an array of names is used for columns to ensure the string names are used, and not the array indices.Oci8 adapter when initializing a result set; previously, it was improperly assigning the count of affected rows to the generated value.IbmDb2 platform's quoteIdentifier() method to properly allow # characters in identifiers (as they are commonly used on that platform).How can I help you explore Laravel packages today?