Skiptir Engu
e62ea0136c
Fixed phpdoc broken links to PHP manual pages [skip ci]
2017-04-11 00:43:38 +03:00
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
2017-03-10 02:30:16 +01:00
Vladimir
55dd16f1f7
Fixes #12715 : Exception SAVEPOINT LEVEL1 does not exist instead of deadlock exception
2017-03-07 22:58:46 +03:00
Vovan-VE
308abdc8a5
Merge branch 'master' into usemaster-improve
2017-02-10 04:27:51 +08:00
Dmitry Naumenko
e295b28333
Added TODO comment
2017-02-09 16:43:37 +02:00
Vovan-VE
b68417b1ad
Fix: catch Throwable too
2017-02-09 22:06:12 +08:00
Carsten Brandt
c19b2f7dc8
release version 2.0.11
2017-02-01 17:46:29 +01:00
Vovan-VE
d8566aecc4
Exception within useMaster() completely disables slaves
2017-01-07 18:49:52 +08:00
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()` 4a786c7e10
* 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
2017-01-02 02:15:13 +01:00
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
2016-12-16 02:20:02 +01:00
Robert Korulczyk
7a3a342127
Fix errors reported by apidoc extension. ( #12986 )
2016-11-13 14:51:21 +01:00
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed boolean to bool and integer to int in phpdoc
2016-11-07 02:51:39 +03:00
Carsten Brandt
487b2cb439
make db\Connection phpdoc more clear
...
fixes #12429
2016-09-05 12:36:07 +02:00
Roman Grinyov
926a238595
Removed duplicate sentence in docblock ( #12290 ) [skip ci]
2016-08-24 13:31:53 +03:00
Roman Grinyov
434a4ce632
Typos in class docblock ( #12270 )
2016-08-23 22:23:30 +02:00
SilverFire - Dmitry Naumenko
6263eeba69
Updated PHPDoc
2016-07-25 23:33:42 +03:00
Carsten Brandt
326cdfeb52
added test for #11256
2016-07-06 14:51:59 +02:00
Carsten Brandt
bcc19e97cb
added note about Oracle DB connection charset
...
close #11387
2016-07-06 13:00:18 +02:00
Sam Mousa
af5f5d0e3e
Fixes #9851 : Fixed partial commit / rollback in nested transactions
2016-02-15 23:32:32 +03:00
Carsten Brandt
f620f4de90
phpdoc fixes
2016-02-07 19:48:13 +01:00
SilverFire - Dmitry Naumenko
b43ebcc368
yii\db\Connection::createCommand() removed DI usage for performance reasons
2016-02-04 14:32:09 +02:00
Carsten Brandt
49c15fa304
better documentation for Command in db Connection
2016-02-04 13:24:08 +01:00
SilverFire - Dmitry Naumenko
8b92b08306
db/Connection - update PHPDocs, update CHANGELOG
2016-02-04 14:03:57 +02:00
Sam Mousa
aa36f63f4c
Fixed issue #7674
2016-02-04 14:03:46 +02:00
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
2015-12-02 23:15:28 +02:00
Sam Mousa
603a956b8d
Implemented __sleep in yii\db\Connection
...
to support serializing the connection object without exceptions.
- Added test for serializing an open connection.
- Added unserialize test
close #10149
2015-11-16 22:44:57 +01:00
A Slatius
a030cd4250
Allow the use of Yii aliases in an SQLite dsn
...
Making it possible to use a SQLite DSN like;
```php
'db' => [
'dsn' => 'sqlite:@app/db/database.sqlite3',
]
```
That way it'll always work out of the box and absolute paths aren't
needed.
close #9869
2015-10-09 16:21:33 +02:00
jeicd
0407407b76
fix coding style to follow PSR-2
2015-10-05 13:58:47 +06:00
Davide Della Casa Venturelli
329fe129fe
Fixed #9454 : changed sqlsrv pdo class selection
2015-08-21 13:25:02 +02:00
Alexander Mohorev
afe21a986a
PSR-2 anonymous functions
2015-06-09 00:14:44 +03:00
Alexander Mohorev
bb8550886e
PHP type casting
2014-10-25 15:30:03 +03:00
Carsten Brandt
4054b2196f
fixed broken links
2014-10-06 22:04:59 +02:00
Qiang Xue
d2b864da84
prepare for 2.0.0-rc release.
2014-09-27 21:59:54 -04:00
Qiang Xue
613d3071a7
Fixes #5106 : Refactored query caching to not load cache component when query caching is not used at all.
2014-09-23 20:59:51 -04:00
Carsten Brandt
1f31f27787
phpdoc
2014-07-29 22:19:14 +02:00
Qiang Xue
e486b663a0
Fixed test break.
2014-07-21 14:38:45 -04:00
Qiang Xue
27132ced7c
Fixes #4384 .
2014-07-21 08:20:10 -04:00
Qiang Xue
a3e2b94adf
Fixes #3611 : Refactored query caching.
2014-07-20 20:59:38 -04:00
Qiang Xue
6e6005b148
Refactored code.
2014-07-20 08:01:16 -04:00
Qiang Xue
919ab232e7
all finished. [skip ci]
2014-07-12 13:11:29 -04:00
Qiang Xue
65987f62ae
test WIP
2014-07-12 10:38:51 -04:00
Qiang Xue
43333d9cad
Implemented master balancing.
2014-07-11 22:33:36 -04:00
Qiang Xue
91e0c5ae8a
Added Connection::useMaster() and refactored code.
2014-07-11 21:04:26 -04:00
Qiang Xue
e67d0b3c39
WIP
2014-07-11 14:01:44 -04:00
Qiang Xue
2018503c8d
WIP
2014-07-11 12:59:32 -04:00
Qiang Xue
67a1e172db
WIP
2014-07-11 08:27:58 -04:00
Alexander Makarov
bc5028eb97
Renamed parameter to match description better
2014-07-10 21:09:08 +04:00
Alexander Makarov
608e9012fb
Adjusted Connection::transaction to provide Connection instance by default instead of transaction instance
2014-07-10 20:50:07 +04:00
Alexander Makarov
4ff28fb9fb
Added callable typehint and active transaction check to Connection::transaction()
2014-07-10 19:01:21 +04:00
Alexander Makarov
ceff7cc794
Removed requirement to use \Callback from Connection::transaction, improved docs
2014-07-10 18:18:51 +04:00