1433 Commits

Author SHA1 Message Date
330166e703 fix Exception\Throwable order 2021-06-13 18:07:43 +05:00
d5a428e001 Fix some code smells (#18696) 2021-06-05 13:37:45 +03:00
7966fe47e6 Scrutinizer fixes (#18685)
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/filters/AccessRule.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/helpers/BaseFileHelper.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Application.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Module.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/MultipartFormDataParser.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/Session.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Controller.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* Added vardocs, and small refactor

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/conditions/InConditionBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/Connection.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/mssql/QueryBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/log/Logger.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/BaseMigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* Adding space between type

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/CacheController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/FixtureController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* Update framework/console/controllers/CacheController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/CacheController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/FixtureController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/FixtureController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/FixtureController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/FixtureController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/FixtureController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/FixtureController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-05-31 21:07:36 +03:00
82be8b61cf Replacing deprecated ::className() with ::class (#18671) 2021-05-22 23:14:54 +03:00
ddeb80cdf3 Fixed typo 2021-05-19 07:32:35 +02:00
52cf02d685 Fix #18634: Fix yii\db\BaseActiveRecord::unlink() and unlinkAll() to omit condition for on property when it doesn't exist 2021-05-06 13:04:40 +03:00
88a7a00458 release version 2.0.42 2021-05-06 00:08:29 +03:00
26656a2ed1 Minor cleanup 2021-05-05 19:29:51 +03:00
f14b2ccd89 remove duplicate code 2021-04-28 18:32:43 +03:00
a7ee99ce92 Update framework/db/mssql/QueryBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-28 18:28:20 +03:00
662c54b47c Update framework/db/mssql/ColumnSchemaBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-28 18:27:30 +03:00
2d76f33dd4 Fixes after review 2021-04-27 12:15:31 +03:00
12ccd2adde Update framework/db/mssql/QueryBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-27 12:09:32 +03:00
a0552f1680 Update framework/db/mssql/QueryBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-27 12:09:14 +03:00
98b0c5b665 Update framework/db/mssql/ColumnSchemaBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-27 12:08:22 +03:00
dbc4d1ecea Update framework/db/mssql/ColumnSchemaBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-27 12:08:15 +03:00
a1cc222927 Update framework/db/mssql/QueryBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-27 12:08:06 +03:00
01a9fef962 Update framework/db/mssql/ColumnSchemaBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-27 12:07:38 +03:00
4fba562cd0 New attemp 2021-04-26 19:24:14 +03:00
9367af4b15 Fix for issue #18604 2021-04-25 20:19:14 +03:00
f62701bf1d Fixed another call 2021-04-24 11:33:59 +03:00
ffec508e58 Do not use $this to call static method 2021-04-23 21:36:24 +03:00
ad2ce6ad4f Fix event namespace in yii\db\Connection phpdoc (#18608) 2021-04-20 09:53:48 +03:00
395dc70468 Merge branch 'master' into fix/db-pgsql-raw-sql-params 2021-04-01 23:49:53 +03:00
335385d7ba Db pgsql getRawSql params replace fix 2021-04-01 19:37:50 +03:00
10bb71a822 Fix #17203: Fix yii\db\Connection to persist customized queryBuilder configuration after the close()open() cycle 2021-04-01 01:10:16 +03:00
42e8aa4ea5 Fix #18325: Fix yii\db\pgsql\Schema to respect non-default PgSQL schema name for data types
Co-authored-by: SilverFire - Dmitry Naumenko <d.naumenko.a@gmail.com>
2021-04-01 00:52:02 +03:00
64ecbf10b1 Fix for issue #18526
DbCache doesn't working using MSSQL/SqlServer
2021-03-15 22:47:54 +03:00
54f25c4b04 Fix #17174: Fix yii\db\BaseActiveRecord::unlink() to not ignore on conditions in via relations 2021-03-14 19:04:07 +03:00
4479c66522 Fixed phpdoc types 2021-03-12 23:41:48 +03:00
6dad27d4a1 Reversed #18499 (#18546) 2021-03-04 12:53:11 +03:00
4e2045c040 release version 2.0.41 2021-03-04 00:51:35 +03:00
1ace064848 Pre-release adjustments 2021-03-03 20:52:52 +03:00
dfef7f8365 Fix #18539: Fix "driver does not support quoting" when using the driver pdo_odbc 2021-03-03 10:11:00 +03:00
14f1138441 Correct #18499 2021-03-01 23:02:28 +03:00
fbd932903c Fix #18508: Fix Postgres SQL query for load table indexes with correct column order 2021-02-25 13:08:35 +03:00
d1037db68d Fix #18499: When using yii\db\Query::all() and yii\db\Query::$indexBy, the yii\db\Query::$indexBy is auto inserted into yii\db\Query::$select - the same as in yii\db\Query::column()
Co-authored-by: Bizley <pawel@positive.codes>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-02-23 18:44:39 +03:00
4ed14bb738 Update QueryTrait property types 2021-02-17 19:38:42 +03:00
9c370a6ccf Fix #8750: Fix MySQL support when running in ANSI/ANSI_QUOTES modes 2021-01-30 23:21:04 +03:00
71030dc728 Fix #18480: Transactions are not committed using the dblib driver 2021-01-13 16:51:36 +03:00
19a2043412 Fix typo in Connection.php
avaiable -> available
2021-01-12 20:51:55 +03:00
30e99a7a66 Fix #18457: Add EVENT_RESET and EVENT_FINISH events to yii\db\BatchQueryResult 2021-01-11 14:45:47 +03:00
9883b78214 Fix #18448: Fix issues in queries and tests for older MSSQL versions 2020-12-24 17:37:07 +03:00
0571e806b9 Fix #18447: Do not use getLastInsertID to get PK from insert query to lower collision probability for concurrent inserts 2020-12-24 14:04:01 +03:00
82400fc33e Fix #18365 : Move quoting of table names to upper level to function getSchemaMetadata() in MSSQL driver to get clean names from schema 2020-12-23 12:40:05 +03:00
b8f4958092 Fix #18442: Fix calls with array access to strings 2020-12-23 01:08:58 +03:00
112effc631 Fix #18435: Fix ensuring Active Record relation links' keys to be strings 2020-12-18 19:12:33 +03:00
ff0fd9a9ea Fix #16492: Fix eager loading Active Record relations when relation key is a subject to a type-casting behavior 2020-12-15 22:56:24 +03:00
7c7c7148f6 Fix #18287: Fix the OUTPUT got SQL syntax error if the column name is MSSQL keyword e.g key 2020-12-09 00:09:11 +03:00
7c5fcf32b4 Add int return type queryScalar and scalar method docs 2020-12-07 18:48:24 +03:00