Releases: rkrx/php-mysql-query-builder
Raised min php version to 8.0 + some php 8.4 related improvements
Reorganized imports; fixed some issues reported by phpstan
Reorganized imports; fixed some issues reported by phpstan and hinted some false positives
TableNameBuilder: Now using UNION ALL when using data arrays to build ad-hoc tables
TableNameBuilder: Now using UNION ALL when using data arrays to build ad-hoc tables
Fixed type-definition for Select::where and Select::having
Fixed type-definition for Select::where and Select::having to reflect that DateTimeInterface as a arg parameter is accepted.
Enhanced typing for phpstan
0.3.9 Enhanced typing for phpstan
Composer: Fixed psr/log-requirement
Composer: Fixed psr/log-requirement
Fixed logging: In some cases, queries where logged twice
0.3.7 Fixed logging
Added select-methods and refined where
- Fieldnames (keys) of Key-Value-style where and having now can contain dots and will handles correctly in most cases.
- In case the key already contains a backtick or a paranthesis the key will not be untouched.
- Select: Added two methods
getOrderBy
andresetOrderBy
MySQL-Quoter can now handle datetime values with automatic time-zone conversion
You can now use DateTimeInterface objects as parameters in many places (where, having, join, etc). However, this does not apply to Prepared Statements, since here PHP directly handles the passed variables.
Unless otherwise specified, the default time zone set in PHP is used to calculate the database time. It is usually not possible to read usable timezone information from MySQL. The timezone can be specified when instantiating the MySQL object as the timezone
parameter either as a string timezone, or as a DateTimeZone object.
Fixed exception handling bug
0.3.4.1 Fixed bug