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.
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.
[0-9a-zA_Z_]; as such, the driver now hashes the parameter names
using md5() in order to ensure compatibility with other drivers.Zend\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).Zend\Db\Sql\Predicate\NotBetween, which can be invoked via Sql
instances: $sql->notBetween($field, $min, $max).Zend\Db\Metadata\Source\Factory, from Zend\Db\Metadata\Metadata,
removing the (non-public) createSourceFromAdapter() method from that
class. Additionally, it extracts Zend\Db\Metadata\MetadataInterface, to
allow creating alternate implementations.JOIN_OUTER_LEFT and JOIN_OUTER_RIGHT in favor of
JOIN_LEFT_OUTER and JOIN_RIGHT_OUTER.Zend\Db\Predicate\Predicate::expression(), allowing it to
be nullable, and mirroring the constructor of Zend\Db\Predicate\Expression.>=2.5.0,<2.7.0 to ensure hydrators
will work as expected following extraction of hydrators to the zend-hydrator
repository.How can I help you explore Laravel packages today?