169 Commits

Author SHA1 Message Date
63ae3f9a04 Fix #9740: Usage of DI instead of new keyword in Schemas 2022-11-27 19:10:23 +03:00
0b4d5aaafa Fix #19520: Fix for TIMESTAMP & ROWVERSION columns in MSSQL insert query 2022-11-13 21:26:49 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03: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
9fbdc9f01b Fix #18821: Additional type fixes (#19217) 2022-02-09 11:35:20 +03:00
730f0e56b5 Fix #18821: Allow yii\db\ExpressionInterface as column in yii\db\conditions\InBuilder 2022-02-08 16:51:38 +03:00
942e726a8d Fix #19176: Add #[\ReturnTypeWillChange] on MSSQL classes (#19177) 2022-01-20 10:25:41 +03:00
655786b7ed release version 2.0.44 2021-12-30 10:50:56 +03: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
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
64ecbf10b1 Fix for issue #18526
DbCache doesn't working using MSSQL/SqlServer
2021-03-15 22:47:54 +03:00
1ace064848 Pre-release adjustments 2021-03-03 20:52:52 +03:00
71030dc728 Fix #18480: Transactions are not committed using the dblib driver 2021-01-13 16:51:36 +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
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
ccb14ff667 release version 2.0.39 2020-11-10 13:58:35 +03:00
7a50da5cf8 Fix #18287: Fix for OUTPUT INSERTED and computed columns. Added flag to computed values in table schema 2020-10-04 21:44:18 +03:00
4b2af4d2a4 Bug #13973: Correct alterColumn for MSSQL & drop constraints before drop column
Fixing #11158 and #13973
2020-09-08 12:50:32 +03:00
a624c31698 Fix #18198: Fix saving tables with trigger by outputting inserted data from insert query with usage of temporary table 2020-08-05 09:39:05 +03:00
38f038175f Adjust changelog, correct phpdoc, minor code style fixes 2020-07-07 15:00:16 +03:00
d755004c41 Fix #18110: Add quotes to return value of viewName in MSSQL schema. It is [someView] now 2020-06-22 23:46:04 +03:00
d317e41b21 Fix #18101: Fix behavior of OUTPUT INSERTED.* for SQL Server query: "insert default values"; correct MSSQL unit tests; turn off profiling echo message in migration test 2020-06-14 14:20:21 +03:00
5c01dc75ae Fix #13828, Fix #17474: Fix retrieving inserted data for a primary key for SQL Server 2005 or later
- Bug #13828: Fix retrieving inserted data for a primary key of type uniqueidentifier for SQL Server 2005 or later.
- Bug #17474: Fix retrieving inserted data for a primary key of type trigger for SQL Server 2005 or later.

The OUTPUT clause is new to SQL Server 2005 and has the ability to access the INSERTED and DELETED tables as is the case with a trigger.
2020-06-06 22:44:40 +03:00
559206bc78 Fix #17635: Fix varbinary data handling for MSSQL 2020-01-16 19:19:34 +03:00
cdd40b8dfb Fix #17504: Fix upsert when $updateColumns = true but there are no columns to update in the table 2019-08-21 11:56:20 +03:00
b66a6133dc release version 2.0.24 2019-07-30 18:17:45 +03:00
c2eae6cb0e Fix #17457: Fixed phpTypecast() for MSSQL 2019-07-23 23:08:31 +03:00
9988efc04f Fix #16796: Fixed addition and removal of table and column comments in MSSQL 2019-07-23 18:50:57 +03:00
6fc04a622e Fix #17219: Fixed quoting of table names with spaces in MSSQL 2019-07-19 13:48:57 +03:00
259c496e2e Fix #10020: Fixed quoting of column names with dots in MSSQL 2019-07-17 16:46:31 +03:00
dfe58e877c Remove unnecessary use 2019-07-10 21:16:39 +03:00
869f475dc1 Fix #17413, fix #17418: Fixed MSSQL tests 2019-07-10 17:30:41 +03:00
9f2a87363e Fixes #17420: Fixed loading of column default values for MSSQL 2019-07-10 17:29:11 +03:00
55b06d2364 Fix #17413: Fixed MSSQL tests: QueryBuilderTest::testGetColumnType(), QueryBuilderTest::testResetSequence() 2019-07-09 11:47:55 +03:00