Commit Graph

657 Commits

Author SHA1 Message Date
Carsten Brandt
f99f333218 added note to docs about #8085 2015-04-15 10:03:42 +02:00
Klimov Paul
b8081b59b3 Fixed yii\db\Query::count() fails for query containing 'having' without 'group by' 2015-04-14 16:11:07 +03:00
Carsten Brandt
ba0fd22c66 Update ColumnSchema.php
added comment
2015-04-13 00:35:41 +02:00
Jan Waś
698bfddeed Fixes #7847: yii\db\ColumnSchema was typecasting numerics to strings with incorrect decimal separator for some locales 2015-04-13 00:35:17 +03:00
Carsten Brandt
5306cac4b9 added support for subqueries to simple conditions
fixes #8027
2015-04-12 01:45:21 +02:00
Qiang Xue
fdb730a12a syntax fix [skip ci] 2015-04-10 21:51:33 -04:00
Qiang Xue
aead65f2d2 Fixes #7515: Added support to use indexBy() together with column() in query builder 2015-04-08 22:54:30 -04:00
Jan Waś
ced423b601 Fixes #8012: Fixed fetching multiple relations between two tables for pgsql 2015-04-09 00:59:56 +03:00
John Was
901d640b55 Fixes #7973: Added Schema::getSchemaNames method 2015-04-03 01:03:49 +03:00
Alexander Makarov
9f8ca6b3db Removed join according to https://github.com/yiisoft/yii2/issues/7958#issuecomment-88872600 2015-04-02 16:17:19 +03:00
Jan Was
356d1b98a7 fix fetching pgsql indexes for older server versions 2015-04-02 12:35:24 +02:00
Jan Was
ec7bbe1914 fix fetching pgsql constraints for older server versions 2015-04-02 07:25:38 +02:00
John Was
664958548f fix oci\Schema::findConstraints() and pgsql\Schema::findTableNames(); added missing view to oci tests 2015-03-30 23:51:53 +02:00
John Was
4d1ca9ff17 Fixes #7831: Add order when fetching database table names and constraints 2015-03-30 22:18:56 +03:00
John Was
29304a185a Fixes #7833: Support (materialized) views and foreign tables along normal tables when fetching table schema 2015-03-30 19:01:12 +03:00
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 2015-03-30 18:01:30 +03:00
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
2015-03-29 21:57:13 +02:00
Carsten Brandt
817bd4279a fixed AR phpdoc
fixes #7787
2015-03-19 12:59:05 +01:00
Qiang Xue
99a612e1a6 Finished AR guide [skip ci] 2015-03-15 01:26:06 -04:00
Qiang Xue
bd20b30b89 AR guide WIP [skip ci] 2015-03-09 22:43:24 -04:00
Carsten Brandt
2aace3714c minor adjustments 2015-03-01 01:24:28 +01:00
Alexander Kochetov
29f5dc37a5 Correct phpDoc for return in several cases
close #6733
2015-02-28 23:49:16 +01:00
Qiang Xue
5a63ae324e Fixes #7211: Query caching should properly deal with the case when query result is false 2015-02-25 23:06:42 -05:00
Alexander Makarov
187322052d Fixed converting double to PHP type 2015-02-26 02:37:47 +03:00
Alexander Makarov
c0e448bacb Changed CUBRID type for Double 2015-02-26 02:28:59 +03:00
Alexander Makarov
5870a74672 Added Schema::DOUBLE to represent ANSI SQL Double Precision 2015-02-25 16:01:37 +03:00
Carsten Brandt
2897257ec1 fixed wrong docs about loadDefaultValues() and init()
fixes #7373
2015-02-24 20:51:47 +01:00
Carsten Brandt
89d1e55f91 phpdoc fix, close #7404 2015-02-24 13:26:01 +01:00
Qiang Xue
56dbd4cefa Fixes #7357: Refactored yii\db\ColumnSchema by adding typecast() method to decouple phpTypecast() from dbTypecast() 2015-02-20 22:03:39 -05:00
Jose
4e6b1fd5c6 Local loop variable added to fix #7271 bug 2015-02-15 17:25:43 -05:00
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. 2015-02-15 17:25:43 -05:00
Qiang Xue
d9117a67b1 Fixes #7227: Query builder should respect column alias setting when yii\db\Expression is being selected 2015-02-14 10:36:19 -05:00
Alexander Makarov
6481d13494 Optimized checks order in conditions 2015-02-08 17:56:36 +03:00
Alexander Makarov
af7ae33d5b Use (array) cast instead of !is_array check for both readability and performance 2015-02-08 17:56:14 +03:00
Angel Faryshta Guevara
ffe940180c simplify findByCondition 2015-02-03 16:31:00 -05:00
Carsten Brandt
8c3dce88dd fixed phpdoc 2015-02-03 00:03:13 +01:00
resurtm
233388fdd6 Remove non-necessary leading slash in use operator. 2015-02-02 11:55:32 +06:00
Qiang Xue
84b20d57e4 Fixes #7055: composite IN condition was not generated correctly for certain DBMS 2015-01-31 22:26:51 -05:00
Jan Waś
1e5f159f78 override only mssql and sqlite QueryBuilder; throw an exception for composite in condition with a subquery 2015-01-31 22:20:41 -05:00
Jan Waś
f58d096920 fixes #6792, use a simpler composite in condition implementation on dbs other than pgsql 2015-01-31 22:20:41 -05:00
Alexander Kochetov
6cfbd8d548 Fixed ActiveRecordInterface phpDoc 2015-01-27 01:57:45 +03:00
Alexander Kochetov
08e54c522c Fixed ActiveRecordInterface phpDoc 2015-01-27 01:44:35 +03:00
Carsten Brandt
4267b53d43 added doc about count() return value
fixes #yiisoft/yii#3712
2015-01-14 18:33:41 +01:00
Carsten Brandt
6f889e12ac Merge PR #6763 branch 'creocoder-incorrect-checking-sqlite-version'
* creocoder-incorrect-checking-sqlite-version:
  improved db test, avoid error by accessing db directlry
  fixed failure on sqlite version check
  Correct SQLite version checking
2015-01-10 22:10:10 +01:00
Carsten Brandt
f177f1701a fixed failure on sqlite version check
ensure PDO instance has been created at this point
2015-01-10 22:06:43 +01:00
Alexander Kochetov
f42cd49833 yii\db\ActiveQuery phpDoc fix 2015-01-08 02:05:37 +03:00
Alexander Kochetov
ee85dba92e yii\db\ActiveQuery phpDoc fix
close #6779
2015-01-07 22:57:54 +01:00
Alexander Kochetov
fff48ef76f Correct SQLite version checking 2015-01-06 01:27:01 +03:00
Qiang Xue
d341bf02b4 Fixes #6398: Added support for specifying dependent component in terms of a configuration array for classes such as DbCache 2015-01-04 19:28:05 -05:00
Qiang Xue
780fdd611a Fixes #6710 2014-12-31 10:55:54 -05:00