Jose
|
4e6b1fd5c6
|
Local loop variable added to fix #7271 bug
|
10 years ago |
Jose Lorente
|
98759201ac
|
Fixed bug #7271. Classes that call '*::populateRecord()' after retrieving data from ddbb call now the method on the class of the model returned by '*::instantiate()'. Tests for mysql, elasticsearch and mongodb attached.
|
10 years ago |
Qiang Xue
|
d9117a67b1
|
Fixes #7227: Query builder should respect column alias setting when `yii\db\Expression` is being selected
|
10 years ago |
Alexander Makarov
|
6481d13494
|
Optimized checks order in conditions
|
10 years ago |
Alexander Makarov
|
af7ae33d5b
|
Use (array) cast instead of !is_array check for both readability and performance
|
10 years ago |
Angel Faryshta Guevara
|
ffe940180c
|
simplify findByCondition
|
10 years ago |
Carsten Brandt
|
8c3dce88dd
|
fixed phpdoc
|
10 years ago |
resurtm
|
233388fdd6
|
Remove non-necessary leading slash in use operator.
|
10 years ago |
Qiang Xue
|
84b20d57e4
|
Fixes #7055: composite IN condition was not generated correctly for certain DBMS
|
10 years ago |
Jan Waś
|
1e5f159f78
|
override only mssql and sqlite QueryBuilder; throw an exception for composite in condition with a subquery
|
10 years ago |
Jan Waś
|
f58d096920
|
fixes #6792, use a simpler composite in condition implementation on dbs other than pgsql
|
10 years ago |
Alexander Kochetov
|
6cfbd8d548
|
Fixed ActiveRecordInterface phpDoc
|
10 years ago |
Alexander Kochetov
|
08e54c522c
|
Fixed ActiveRecordInterface phpDoc
|
10 years ago |
Carsten Brandt
|
4267b53d43
|
added doc about count() return value
fixes #yiisoft/yii#3712
|
10 years ago |
Carsten Brandt
|
f177f1701a
|
fixed failure on sqlite version check
ensure PDO instance has been created at this point
|
10 years ago |
Alexander Kochetov
|
f42cd49833
|
yii\db\ActiveQuery phpDoc fix
|
10 years ago |
Alexander Kochetov
|
ee85dba92e
|
yii\db\ActiveQuery phpDoc fix
close #6779
|
10 years ago |
Alexander Kochetov
|
fff48ef76f
|
Correct SQLite version checking
|
10 years ago |
Qiang Xue
|
d341bf02b4
|
Fixes #6398: Added support for specifying dependent component in terms of a configuration array for classes such as `DbCache`
|
10 years ago |
Qiang Xue
|
780fdd611a
|
Fixes #6710
|
10 years ago |
Alexander Kochetov
|
d5176a463f
|
better exception message
- yii\db\BaseActiveRecord::findByCondition better exception
- yii\db\ActiveRecord::findByCondition better exception
close #6704
|
10 years ago |
Yuri Morozov
|
b9a6b65e89
|
Implicit type casting to avoid buggy dblib issues
|
10 years ago |
Veaceslav Medvedev
|
89406502ad
|
Fixed typo in phpdoc
|
10 years ago |
Paul Klimov
|
5ad6ba5c9e
|
Fix from e719ff5 moved to `yii\sphinx\Query`
|
10 years ago |
Paul Klimov
|
e719ff5854
|
`yii\db\Query::queryScalar()` fixed to use `static` when creating subquery
|
10 years ago |
artyhedgehog
|
4e5b3b043e
|
Update QueryInterface.php
A back quote sign in docblock missed.
|
10 years ago |
wenbin1989
|
2202ae6cb8
|
Fixes #6080: Oracle DB schema did not load column types correctly
|
10 years ago |
Carsten Brandt
|
073982ab0a
|
Update BaseActiveRecord.php
The exceptions thrown on error are db exceptions.
|
10 years ago |
Qiang Xue
|
83b0b3d480
|
Fixes #6311: Optimistic lock for ActiveRecord does not work as expected
|
10 years ago |
Carsten Brandt
|
8b79293ff2
|
added missing `@since` annotations
|
10 years ago |
Alexander Makarov
|
7b20bdeeb2
|
Fixes #6279: `yii\db\Schema::getLastInsertID()` was passing wrong default schema name to PDO
|
10 years ago |
Andrey Grachov
|
25a7c84ef2
|
Fixes #6271: Query caching returns the same data when running the same SQL with different fetch modes
|
10 years ago |
Carsten Brandt
|
cc8ffe364e
|
added support for yii\db\Expression to querybuilder BETWEEN and LIKE
fixes #6164
|
10 years ago |
Carsten Brandt
|
db56384fcf
|
improved documentation about loadDefaultValues()
issue #6126
|
10 years ago |
Qiang Xue
|
9eedfd054e
|
Fixed test break.
|
10 years ago |
Qiang Xue
|
ab1f32ef76
|
Fixes #4492: Support PostgreSQL-specific syntax for `QueryBuilder::alterColumn()`
|
10 years ago |
Carsten Brandt
|
38d0570843
|
fixed unlink() for array valued attributes
return value would not be a valid array when json encoded after unlink().
fixes #6065
|
10 years ago |
Qiang Xue
|
6b52b03523
|
Fixes #6049: `yii\db\Connection::getSchema()` for Oracle should return false when the table does not exist. Oracle does not support `ON UPDATE` clause.
|
10 years ago |
wenbin1989
|
3d25f76e59
|
Fix batchInsert bug in oci. default batchInsert sql is ``` insert into tableName(col1, col2, col3...) value(`col11`, `col12`,`col13`.... ),(`col21`, `col22`,`col23`.... ); ``` which is illegal in oracle db. Change it to ``` insert into tableName(col1, col2, col3...) select 'col11', 'col12', 'col13' from dual union select 'col21', 'col22', 'col23' from dual union select 'col31', 'col32', 'col33' from dual; ```
|
10 years ago |
wenbin1989
|
39a358c269
|
oracle db doesn't support `ON UPDATE` in FOREIGN KEY. remove `ON UPDATE` section in method `addForeignKey`.
|
10 years ago |
wenbin1989
|
b733a18904
|
fix oci bugs: \yii\db\oci\Schema::findColumns($table) return true when table doesn't exist When table doesn't exist, query in method `findColumns` return empty array instead of throw a exception.
|
10 years ago |
Qiang Xue
|
9da53b702c
|
typo fix [skip ci]
|
10 years ago |
Qiang Xue
|
5bdf36d9c8
|
Fixes #5780: `QueryBuilder::batchInsert()` may cause "undefined index" error
|
10 years ago |
Alexander Mohorev
|
bb8550886e
|
PHP type casting
|
10 years ago |
Thiago Talma
|
8a1bcd2775
|
one more example
|
10 years ago |
Qiang Xue
|
2544e86d2c
|
Fixes #5735: Added `yii\bootstrap\Tabs::renderTabContent` to support manually rendering tab contents
|
10 years ago |
Alexander Makarov
|
99a818c0b8
|
Fixes #3630: `yii\db\Command::queryInternal()` is now protected
|
10 years ago |
Qiang Xue
|
5829020eff
|
Fixes #5223: Query builder now supports selecting sub-queries as columns
|
10 years ago |
Carsten Brandt
|
292a9ff55b
|
Add support for yii\db\Expression to QueryBuiler simple conditions
fixes #5601
|
10 years ago |
Alexander Makarov
|
02622b6fe4
|
phpdoc fixes and additions
|
10 years ago |