Klimov Paul
|
68351e7d8f
|
yii\db\ActiveQuery::removeDuplicatedModels() throws exception if model primary key is empty
|
2015-05-19 10:11:09 +03:00 |
|
Carsten Brandt
|
cca47b5469
|
ensure primary key string comparison is made identical
this is to avoid cases where string primary keys starting with '0e'.
See http://securityaffairs.co/wordpress/36732/hacking/php-hash-comparison-flaw.html
Other parts of Yii 2, escpecially the security and auth parts, are **not** affected.
|
2015-05-16 00:15:52 +02:00 |
|
Qiang Xue
|
42fd70b2a1
|
exception message fix
|
2015-05-10 15:40:41 -04:00 |
|
Qiang Xue
|
4488dbbff7
|
build cleanup [skip ci]
|
2015-05-10 13:29:32 -04:00 |
|
Jan Waś
|
ec920d2881
|
add missing schema name conditions for mssql
close #8046
fixes #6234
|
2015-05-10 00:31:43 +02:00 |
|
Klimov Paul
|
582b7606ac
|
Fixed yii\db\ActiveRelationTrait::populateRelation() fails when link refers to array string convertable object attribute
|
2015-05-08 11:17:35 +03:00 |
|
Qiang Xue
|
5d4780da21
|
Fixes #8268: Allow QueryBuilder to recognize more variations of limit and offset values
|
2015-05-05 22:28:50 -04:00 |
|
laszlovl
|
8c22270591
|
db Command performance tweak
|
2015-05-03 21:03:55 +02:00 |
|
vbelogai
|
672510d521
|
Update Schema.php
insert: added $columnSchemas initialization; added size parameter to pdoStatement->bindParam
|
2015-04-28 15:46:10 +03:00 |
|
Carsten Brandt
|
21f51400ef
|
added information about quoting to batch insert
|
2015-04-27 10:22:56 +02:00 |
|
Qiang Xue
|
e6b09bb82f
|
Fixes #7888 doc fix [skip ci]
|
2015-04-26 23:03:26 -04:00 |
|
Carsten Brandt
|
b0be36668e
|
slight refactoring for #8179
|
2015-04-26 21:32:50 +02:00 |
|
Thiago Talma
|
4970fb1e95
|
if...else
|
2015-04-25 22:36:40 -03:00 |
|
Thiago Talma
|
4bb9ec8906
|
new param
|
2015-04-24 14:32:09 -03:00 |
|
Thiago Talma
|
815ca6b444
|
Compare it equals
|
2015-04-24 12:45:15 -03:00 |
|
Klimov Paul
|
faf7bb73fa
|
redundant call chain removed
|
2015-04-24 14:34:07 +03:00 |
|
Klimov Paul
|
4503cae876
|
code style fix
|
2015-04-24 13:47:44 +03:00 |
|
Klimov Paul
|
c0fc4596e2
|
Fixed yii\db\ActiveRelationTrait::populateRelation() fails when link refers to string convertable object attribute, like \MongoId
|
2015-04-24 13:42:47 +03:00 |
|
Carsten Brandt
|
ef662b57be
|
added missing @since annotations
|
2015-04-24 12:09:40 +02:00 |
|
Klimov Paul
|
1c1cfd5e2d
|
yii\db\BaseActiveRecord::getAttributeLabel() refactored to be recursive
|
2015-04-22 14:19:46 +03:00 |
|
Klimov Paul
|
4482d9f8f3
|
Merge branch 'master' of github.com:yiisoft/yii2
|
2015-04-22 13:10:45 +03:00 |
|
Klimov Paul
|
f617618172
|
yii\db\BaseActiveRecord::getAttributeHint() added
|
2015-04-22 13:10:25 +03:00 |
|
Alexander Makarov
|
0645622d49
|
Merge pull request #8151 from nkovacs/following
Grammar fix: followings -> following [skip ci]
|
2015-04-21 17:58:03 +03:00 |
|
Carsten Brandt
|
5635a97fa2
|
Update BaseActiveRecord.php
more explicit code for #8149
|
2015-04-21 16:50:29 +02:00 |
|
Klimov Paul
|
6d96d3cbee
|
Fixed yii\db\BaseActiveRecord::updateCounters() fails for new record saved with counter attribute not set
|
2015-04-21 16:23:00 +03:00 |
|
Nikola Kovacs
|
f11bdfa2a7
|
Grammar fix: followings -> following
|
2015-04-21 15:08:16 +02:00 |
|
Paul Klimov
|
30234292ac
|
Merge pull request #8071 from klimov-paul/5042-insert-returning
Insert into returning alternative
|
2015-04-21 10:33:01 +03:00 |
|
Carsten Brandt
|
1cfc40d6e5
|
link to the guide on quoting from query phpdoc
fixes #8141
|
2015-04-20 23:24:01 +02:00 |
|
Klimov Paul
|
a0b8f74d2e
|
yii\db\Schema::insert() primary key value composition fixed
|
2015-04-20 11:48:51 +03:00 |
|
Klimov Paul
|
aa9399c6c0
|
Merge branch 'master' of github.com:yiisoft/yii2 into 5042-insert-returning
|
2015-04-20 11:23:38 +03:00 |
|
Klimov Paul
|
6751a80ea0
|
yii\db\Schema::insert() now returns primary key value for empty sequence
|
2015-04-20 11:22:58 +03:00 |
|
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 |
|
Klimov Paul
|
767276362d
|
Redundant typecast at yii\db\Schema::insert() removed
|
2015-04-14 12:31:32 +03:00 |
|
Klimov Paul
|
b05ea3d69e
|
PK typecast at yii\db\ActiveRecord restored
|
2015-04-14 12:00:22 +03:00 |
|
Klimov Paul
|
60aa5f3eb9
|
Redundant checks at yii\db\oci\Schema::insert() and yii\db\pgsql\Schema::insert() removed
|
2015-04-14 11:59:58 +03:00 |
|
Paul Klimov
|
31ef4c4504
|
Command execution at yii\db\oci\Schema::insert() fixed
|
2015-04-13 17:49:14 +03:00 |
|
Paul Klimov
|
4e8ee7b001
|
Use RETURNING for inserts for pgsql and oci to support PKs with a custom default value expression
|
2015-04-13 17:11:00 +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 |
|