Skip to content

Releases: rkrx/php-mysql-query-builder

0.1.34.5

17 Feb 12:07

Choose a tag to compare

0.1.34.5 Pre-release
Pre-release
  • Fixed a bug where a UPDATE-Method did not report the changed row count

0.1.34.4

17 Feb 12:07

Choose a tag to compare

0.1.34.4 Pre-release
Pre-release
  • Some minor improvements

0.1.34.3

11 Feb 07:38

Choose a tag to compare

0.1.34.3 Pre-release
Pre-release
  • Some minor improvements

Fixed bug in LazyRowGenerator::generate

03 Feb 13:32

Choose a tag to compare

Pre-release
  • Fixed bug in Kir\MySQL\Builder\Helpers\LazyRowGenerator::generate were the callback was called without the actual row

0.1.34.1

02 Feb 15:24

Choose a tag to compare

0.1.34.1 Pre-release
Pre-release
- Better exception handling

0.1.34

02 Feb 09:38

Choose a tag to compare

0.1.34 Pre-release
Pre-release

Added orderByValues:

$query = $select
->field('t1.name')
->from('t1', 'test1')
->where('t1.id IN (?)', [5, 1, 66, 183, 99, 2, 6])
->orderByValues('t1.id', [5, 1, 66, 183, 99, 2, 6])
->asString();
SELECT
    t1.id
FROM
    test1 t1
WHERE
    t1.id IN ('5', '1', '66', '183', '99', '2', '6')
ORDER BY
    CASE `t1`.`id`
        WHEN '5' THEN '0'
        WHEN '1' THEN '1'
        WHEN '66' THEN '2'
        WHEN '183' THEN '3'
        WHEN '99' THEN '4'
        WHEN '2' THEN '5'
        WHEN '6' THEN '6'
    END ASC

0.1.33

27 Jan 15:33

Choose a tag to compare

0.1.33 Pre-release
Pre-release
- Fixed, that PDO-Exceptions could contain strings as the exception-c…

0.1.32.2

25 Jan 11:38

Choose a tag to compare

0.1.32.2 Pre-release
Pre-release
- Minor fix: The parameter $oldValue is not used and could be removed.

0.1.32.1

22 Jan 10:06

Choose a tag to compare

0.1.32.1 Pre-release
Pre-release
- Minor fix

It's now possible to add parameters to Insert::addExpr, Insert::updateExpr and Insert::addOrUpdateExpr.

21 Jan 12:50

Choose a tag to compare

Example:

$stmt = $insert
->into('test')
->addExpr('a=UPPER(?)', 'a')
->updateExpr('b=LOWER(?)', 'b')
->addOrUpdateExpr('c=?', 'c');