97a4d711ec
Merge branch 'master' into sync-master-2052.
2025-04-26 19:03:07 -04:00
52e4a3e645
release version 2.0.50
2024-05-30 20:23:31 +03:00
20d6c65db2
Merge branch 'master' into sync-to-master.
2024-03-20 06:11:31 -03:00
e2a167028b
Upgrade to PSR12 coding standard ( #20121 )
2024-03-19 17:21:27 +03:00
28f160ba85
Remove deprecated methods to Connection::class
.
2023-09-22 06:40:49 -03:00
96f61b75f8
Fix #19902 : Remove support for CUBRID
2023-07-18 17:00:54 +03:00
6e7d0fbff4
Fix #19816 : Explicitly pass $fallbackToMaster
as true
to getSlavePdo()
to ensure it is not affected by child class with changed defaults
2023-05-04 15:36:33 +03:00
22614a5b1f
release version 2.0.46
2022-08-19 01:18:45 +03:00
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
dcb0750587
Fix #19454 : Fix PDO exception code not properly passed to yii\db\Exception
2022-07-07 18:24:06 +03:00
a87c02c712
Fix more types ( #19333 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
* Null types for Validator
* Several more null types
* One more
* Make AccessRule::$allow always a boolean
It doesn't have any special null handling, so it's safe to default to false
* Validator::$skipOnEmpty is always a boolean
* Catch all throwable from Widget::widget()
* Don't limit $previous args to \Exception
The actual \Exception allows $previous to be any throwable in PHP 7+
* Add Throwable catch block to Instance::get()
* Throwable cleanup
Comment changes only.
- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced
* Yii::setlogger() accepts null
* ArrayHelper::removeValue() can remove any type of value
* Change default $allow value to false
2022-04-03 11:20:21 +02:00
4628b91e73
Fix types ( #19332 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
2022-03-30 18:40:10 +02:00
1271bc419f
Fix #19041 : Fix PHP 8.1 issues
2022-01-14 13:52:01 +03:00
655786b7ed
release version 2.0.44
2021-12-30 10:50:56 +03:00
552593ca3b
Prepare for new apidoc (part 2) ( #19010 )
...
* Fix broken links for events with different namespace
* Fix broken links in see tag
* Fix broken links in see tag (loadData())
* Fix broken link for var_export()
* Fix broken link for CVE
* Remove redundant markdown link wrap in see tags
* Remove see tags that refer to private properties
* Remove more see tags that refer to private properties
* Remove see tags that refer to private methods
* Remove one more redundant markdown link wrap in see tag [skip ci]
* Fix typo in see tag (causes broken link)
* Remove more see tags that refer to private methods
2021-11-18 10:10:09 +03:00
0041f034fd
[doc] Update PHP doc links ( #18957 )
...
* Replace https://secure.php.net with https://www.php.net
* Replace http://www.php.net with https://www.php.net
2021-10-19 14:50:26 +02: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
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
ad2ce6ad4f
Fix event namespace in yii\db\Connection
phpdoc ( #18608 )
2021-04-20 09:53:48 +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
4479c66522
Fixed phpdoc types
2021-03-12 23:41:48 +03:00
4e2045c040
release version 2.0.41
2021-03-04 00:51:35 +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
ccb14ff667
release version 2.0.39
2020-11-10 13:58:35 +03:00
705be8fb85
Fix #18229 : Add a flag to set Connection to SyBase mode
...
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2020-08-18 20:48:24 +03:00
7ca23a2413
Revert "Fix #18134 : Instance of ExpressionInterface
will not be quoted in Connection:quoteColumnName
"
...
This reverts commit e342162425d3e63b3ae3affef82220f6b64e01f9.
2020-06-30 21:37:57 +03:00
e342162425
Fix #18134 : Instance of ExpressionInterface
will not be quoted in Connection:quoteColumnName
2020-06-30 17:59:23 +03:00
385fe13d66
Revert #18102 since renaming is technically problematic ( #18109 )
2020-06-17 13:40:17 +03:00
eb956e9c6b
primary/replica in a definitely non-breaking way ( #18106 )
2020-06-16 11:33:27 +03:00
472600ee3f
Fix #18102 : Use “primary”/“replica” terminology instead of “master”/“slave”
2020-06-14 00:12:10 +03:00
b9101ce893
Fix #18081 : Fix for PDO_DBLIB/MSSQL. Set flag ANSI_NULL_DFLT_ON to ON for current connect to DB
...
* Fix for PDO_DBLIB (MSSQL). Set flag ANSI_NULL_DFLT_ON to ON for current connect to DB.
This flag modifies the behavior of the session to override default nullability of new columns.
By default, for some versions of dblib + freetds, this flag is off.
ANSI recommends default behavior - NULL for new fields without default setted null/not null
2020-06-05 20:29:08 +03:00
088fd518fe
Fix #17991 : Improve yii\db\Connection
master and slave failover, no connection attempt was made when all servers are marked as unavailable
2020-05-02 11:59:35 +03:00
7a5e51e9be
Fix #17935 : Reset DB quoted table/column name caches when the connection is closed
2020-03-26 14:04:52 +03:00
1b5dacb051
Fix #17909 : Reset DB schema, transaction, and driver name when the connection is closed
2020-03-13 00:15:57 +03:00
f165b6b31f
Fix #17679 : Fix Oracle exception "ORA-01461: can bind a LONG value only for insert into a LONG column" when inserting 4k+ string
2020-03-02 23:26:53 +03:00
37d62c2509
Fix #16671 : Logging in Connection::open()
was not respecting Connection::$enableLogging
2019-09-17 17:51:50 +03:00
fe3ebe2e56
Fixes #17356 : MSSQL Schema was not detecting string field size
2019-06-18 14:25:13 +03:00
b638cc4a4e
Fixes #17348 : Improved performance of yii\db\Connection::quoteTableName()
2019-06-08 21:48:35 +02:00
60702e663e
Fixes #17345 : Improved performance of yii\db\Connection::quoteColumnName()
2019-06-07 11:29:24 +02:00
bdb7c64910
Update to https protocol for php.net links ( #17168 ) [skip ci]
...
* Updated php.net link for some MemCache properties [skip ci]
* Changed protocol to https for links to php.net in comments
* Changed protocol to https for links to php.net in code
* Changed www.php.net (http) to secure.php.net (https) in comments
* Changed www.php.net (http) to secure.php.net (https) in code
* Changed protocol to https for links to php.net in UPGRADE.md
* Changed protocol to https for links to pecl.php.net in comments
* Changed us.php.net to secure.php.net (https) in comments
* Changed protocol to https for links to php.net in docs
* Changed www.php.net (http) to secure.php.net (https) in docs
* Changed protocol to https for links to pecl.php.net in docs
* Changed ru/jp.php.net to secure.php.net (https) in docs
Don't sure about russian guide: is this links meant to be for guide on russian, or not?
2019-02-28 13:09:27 +03:00
282152e984
Update Connection.php
...
fix event phpdoc types
2018-05-14 12:13:26 +02:00
4bfe5e7a49
release version 2.0.14.2
2018-03-13 16:15:01 +02:00
5e16c67673
Merge pull request #15797 from kalessil/master
...
[minor] Static code analysis
2018-03-10 15:42:48 +02:00
4391ca7f7b
Connection::getTransaction() adjust phpdoc to also return null ( #15848 ) [skip ci]
2018-03-07 23:45:50 +03:00
b642c36019
Merge branch 'antonmarin-patch-1'
2018-03-03 21:17:42 +02:00
8bb31fb9e5
Updated docs, added tests
2018-03-03 21:17:31 +02:00
bd38e384f6
Fix for yii\db\Connection events documentation [skip ci]
...
Fixes #15799
2018-02-28 00:16:29 +03:00
f10cb6aeee
SCA with Php Inspections (EA Ultimate)
2018-02-27 19:13:22 +01:00