Skiptir Engu
e62ea0136c
Fixed phpdoc broken links to PHP manual pages [skip ci]
8 years ago
Sam Mousa
8326a593ce
Use `ArrayHelper::getValue()`.
8 years ago
Alexander Makarov
902c2b563d
Fixes #13831 : Added more info about transactions in migrations to phpdoc [skip ci]
8 years ago
Sam Mousa
e26bc50441
Fixed wrong variable returned.
8 years ago
Sam Mousa
afb93bf743
Apply grouping after loading relations.
8 years ago
Vladimir Reznichenko
6da1ec6fb2
Fixes #13845 : `mt_rand()` is not used instead of `rand()` in `yii\captcha\CaptchaAction` + minor code improvements
8 years ago
Artur Fursa
1b322f519f
Fixes #13776 : Fixed setting precision and scale for decimal columns in MSSQL
8 years ago
Bob Olde Hampsink
8192f84850
Fix SQLite resetSequence inconsistencies ( #13755 , #13630 )
8 years ago
gagatust
6397791513
Fixed whitespaces to match code style [skip ci]
8 years ago
Skiptir Engu
6a7c01de72
Fixed broken link
8 years ago
Sergey Makinen
a9fb0171f7
Fixes #13745 : `SQLSTATE[HY093]: Invalid parameter number: parameter was not defined` in MSSQL and bug fixes in `yii\db\QueryBuilder::buildLikeCondition()`
8 years ago
Carsten Brandt
7d4b33a805
changed method visibility
...
this should not belong to exposed interface as it is only used
internally by transaction() method.
additional change to #13346
8 years ago
Vladimir
55dd16f1f7
Fixes #12715 : Exception `SAVEPOINT LEVEL1 does not exist` instead of deadlock exception
8 years ago
Sergey Makinen
9a915ba10c
Fixes #8120 : Fixes LIKE special characters escaping for Cubrid/MSSQL/Oracle/SQLite in `yii\db\QueryBuilder`
8 years ago
Alex
6db6a2ddbe
Fixes #13418 : Fixed `QueryBuilder::batchInsert()` if $rows is `\Generator`
8 years ago
Alex-Code
13de76714b
Refactored `yii\db\Query::queryScalar()` method
8 years ago
Vladimir Reznichenko
a182ce57fc
Fixes for issues found with Static Code Analysis with Php Inspections (EA Extended) ( #13606 )
...
* Php Inspections (EA Extended): language level migration fixes
* Php Inspections (EA Extended): instanceof a trait always return false
* Php Inspections (EA Extended): fixed preg_quote (/ is not escaped by default)
* Php Inspections (EA Extended): fixed a greedy regex
* Php Inspections (EA Extended): refereted instanceof self in a trait
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): more greedy regexes fixed
8 years ago
Bob Olde Hampsink
0ea45c78a8
Fixes #13571 : Fix `yii\db\mssql\QueryBuilder::checkIntegrity` for all tables
8 years ago
Bob Olde Hampsink
30b7fc8dc1
Fixes #13577 : `yii\db\QueryBuilder::truncateTable` should work consistent over all databases
8 years ago
Bob Olde Hampsink
fab53b4a6e
Fixes #13582 : Added tests for all `yii\db\QueryBuilder::resetSequence` implementations, fixed SQLite implementation
8 years ago
Bob Olde Hampsink
56c65f6079
Fixes #13577 : Implemented `yii\db\mssql\QueryBuilder::resetSequence()`
8 years ago
Bob Olde Hampsink
aeb6231d92
Fixes #13582 : PK column in `yii\db\pgsql\resetSequence()` was not quoted properly
8 years ago
Nikolay Oleynikov
323568c2e9
Remove trailing spaces from sources and tests ( #13621 ) [skip ci]
8 years ago
Sergey Makinen
ef4dadf437
Fixes #13592 : Fixes Oracle’s `yii\db\oci\Schema::setTransactionIsolationLevel()`
8 years ago
Sergey Makinen
209fb7d94b
Fixes #13594 : Fixes insufficient quoting in `yii\db\QueryBuilder::prepareInsertSelectSubQuery()`
8 years ago
Dmitry Naumenko
e295b28333
Added TODO comment
8 years ago
Vovan-VE
b68417b1ad
Fix: catch Throwable too
8 years ago
Klimov Paul
319e27c45c
Fixed `yii\db\BaseActiveRecord::deleteAll()` changes method signature declared by `yii\db\ActiveRecordInterface::deleteAll()`
8 years ago
Carsten Brandt
c19b2f7dc8
release version 2.0.11
8 years ago
Brandon Kelly
5609e918de
Fixed some malformed @var tags ( #13468 ) [skip ci]
8 years ago
PowerGamer1
37b8cbb2d0
Fixes #12758 : Added the ability to use instances of `\yii\db\Query` class as values in the `\yii\db\QueryBuilder::insert()` method
8 years ago
voroks
25f08afc96
Fixes #8293 : `yii\db\Query` can be passed to `insert` method in `yii\db\QueryBuilder`
8 years ago
Alexander Makarov
cc37cd626f
Fixes #12599 : Fixed MSSQL fail to work with `nvarbinary`. Enhanced SQL scripts compatibility with older versions
8 years ago
João Pedro Pereira
3692941ead
Fixes #11464 : Foreign key name is not provided by schema
8 years ago
Vovan-VE
d8566aecc4
Exception within useMaster() completely disables slaves
8 years ago
Klimov Paul
0a978f9d1e
Fix fetching schema information for `pgsql` when `PDO::ATTR_CASE` is set
8 years ago
Vladimir
f3bc11c724
Implement #13219 : Ability to not shuffle masters connections ( #13241 )
...
* Implement #13219 : Ability to not shuffle masters connections
* Enh: add master connection getter
* Add test case for #13241 which implements #13219
* Doc comments [skip ci]
* Doc comments
* Fix: wrong return value when no masters
* Revert `getMasterPdo()` 4a786c7e10519bd1b3b5593e6fa0a6bbdafbb37a
* Fix: try to fix too slow test
* Refact: fix Single Responsibility; Fix possible BC break
* Update Connection.php
* Update Connection.php
* Update Connection.php
* Update Connection.php
* Updated CHANGELOG
* Fix: grammatic mistake
* Refact: property renamed from `randomizeMasters` to `shuffleMasters`
* Refact: split and try to simplify tests
8 years ago
Carsten Brandt
30e599b94f
updated docs about deleteALl() and updateAll()
8 years ago
p.chapl
5488fc6e28
fixes #13221
...
Make \yii\db\QueryTrait::limit and \yii\db\QueryTrait::offset methods works with \yii\db\Expression
8 years ago
Klimov Paul
8f5f540455
Fix fetching table schema for `pgsql` when `PDO::ATTR_CASE` is set
8 years ago
Pavel Chaplygin
25e6eb04a5
refs #11122 : Fixed can not use `orderBy` with aggregate functions ( #12772 )
...
* refs #11122 : Fixed can not use `orderBy` with aggregate functions like `count`, `max` etc.
* Update QueryTest.php
8 years ago
Carsten Brandt
cb52c42cf5
more details about PHP 5 and 7 compatibility regarding Throwable
8 years ago
Brandon Kelly
350e93e626
Fixes #12612 : Query conditions added with `yii\db\Query::andWhere()` now get appended to the existing conditions if they were already being joined with the `and` operator
8 years ago
Carsten Brandt
a3b6dfbb7b
Catch `\Throwable` in critical places
...
Added catch `\Throwable` to be compatible with PHP7.
Added it in cases where object state needs to be kept consistent.
Mainly on transactions but also some other places where some values are
reset before exiting.
Most of them could probably be refactored by using `finally` in 2.1, as
that requires PHP 5.5.
fixes #12619
8 years ago
Dmitry Naumenko
518be6b8ec
Enhanced PHPDocs markup
8 years ago
Alexander Makarov
837b33767c
Fixes #11697 : Added `filterHaving()`, `andFilterHaving()` and `orFilterHaving()` to `yii\db\Query`
...
Signed-off-by: Alexander Makarov <sam@rmcreative.ru>
8 years ago
Konstantin Tsukur
e78a7fe20e
Initial work on #11697
8 years ago
SilverFire - Dmitry Naumenko
88f2348ed5
Fixed `ActiveRecord::unlinkAll()` to respect `onCondition()`
...
Closes #12213
8 years ago
Chris Harris
ae83dd0524
Fixes #13128 : Fixed incorrect position of {pos} string in ColumnSchemaBuilder `__toString`
8 years ago
Zlakomanov Alexander
b8bf0d0c0c
added hint into foreign keys query for oracle 11g optimisation
...
update oci tests
improved varible name
Closes #13122
8 years ago