John Was
664958548f
fix oci\Schema::findConstraints() and pgsql\Schema::findTableNames(); added missing view to oci tests
10 years ago
John Was
4d1ca9ff17
Fixes #7831 : Add order when fetching database table names and constraints
10 years ago
John Was
29304a185a
Fixes #7833 : Support (materialized) views and foreign tables along normal tables when fetching table schema
10 years ago
Jan Was
48255a446d
Fixes #7867 : Fixes findUniqueIndexes not to perform any processing on unique index on function for pgsql, Implemented findUniqueIndexes for oci and mssql
10 years ago
John Was
4f49feee8d
fixes #7757 : in oci schema fix query results row keys case when PDO::ATTR_CASE is set to PDO::CASE_LOWER
...
added test to check support for setting PDO::ATTR_CASE and fetching table schemas
fixed fetching table schemas for mysql when PDO::ATTR_CASE is set
added tests for oci
fixed fetching composite fks for oci
improvements in oci schema parsing
removed autoIncrement detection fro oci and added test to verify that
implement batchInsert for oci
fix detecting IntegrityException for oci
fixed creating raw sql by skipping object and resource params
fix command test failing for sqlite
10 years ago
Carsten Brandt
817bd4279a
fixed AR phpdoc
...
fixes #7787
10 years ago
Qiang Xue
99a612e1a6
Finished AR guide [skip ci]
10 years ago
Qiang Xue
bd20b30b89
AR guide WIP [skip ci]
10 years ago
Carsten Brandt
2aace3714c
minor adjustments
10 years ago
Alexander Kochetov
29f5dc37a5
Correct phpDoc for return in several cases
...
close #6733
10 years ago
Qiang Xue
5a63ae324e
Fixes #7211 : Query caching should properly deal with the case when query result is false
10 years ago
Alexander Makarov
187322052d
Fixed converting double to PHP type
10 years ago
Alexander Makarov
c0e448bacb
Changed CUBRID type for Double
10 years ago
Alexander Makarov
5870a74672
Added Schema::DOUBLE to represent ANSI SQL Double Precision
10 years ago
Carsten Brandt
2897257ec1
fixed wrong docs about loadDefaultValues() and init()
...
fixes #7373
10 years ago
Carsten Brandt
89d1e55f91
phpdoc fix, close #7404
10 years ago
Qiang Xue
56dbd4cefa
Fixes #7357 : Refactored `yii\db\ColumnSchema` by adding `typecast()` method to decouple `phpTypecast()` from `dbTypecast()`
10 years ago
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