SSiwek
5f8881cfbd
#11428 (oci) speedup SQL SELECT in findColumns
9 years ago
Carsten Brandt
edd6e719bb
added missing since annotations and removed duplicate line
9 years ago
Carsten Brandt
627233715b
proper `@since` annotations
9 years ago
Carsten Brandt
4411a74ebd
proper fix for #9425 , adjust changes from #11363
...
includes tests and fix that works in all cases.
9 years ago
SilverFire - Dmitry Naumenko
e2e4f76229
Updated SqliteQueryBuilderTest to work with Composite in conditions
...
Updated code style, CHANGELOG
9 years ago
Sam Mousa
baab8d6a68
QueryBuilder now supports `Traversable` objects for `IN` clauses.
9 years ago
raoul
60f6ecf063
`yii\db\BaseActiveRecord` now triggers event EVENT_AFTER_REFRESH` after a record is refreshed
...
fixes #9604
close #10867
9 years ago
Carsten Brandt
52e23e0317
fix issue with composite key in combination with join
...
fixes #10201
fixes #9047
close #9895
9 years ago
Sam
fc8708b712
Added missing function to ActiveRecordInterface interface.
...
close #9854
9 years ago
Lennart van den Dool
f8a844a90f
Query helper method for filter values containing operators
...
Basic implementation proposal for yiisoft/yii2#2022
Shortcomings/todo's:
* filtering on non-scalars (where IN statements) not supported
* Numeric properties with a corresponding validation rule will yield
errors when they contain an alphanumeric operator. These properties'
rules should be defined as 'string' or 'safe'.
* no implementation example in Gii code (yet).
close #8505
9 years ago
Carsten Brandt
38d347c9f5
fix quoting column name in case of quoted table name
...
column name was not quoted if a table name was used, that was using the
table prefix feature.
fixes #11088
close #11238
9 years ago
SilverFire - Dmitry Naumenko
15432971d6
db/ColumnSchemaBuilder::buildCommentString() returns empty string by default
9 years ago
SilverFire - Dmitry Naumenko
33d51825c0
Fixed order of column options in curbid\ColumnSchemaBuilder
9 years ago
SilverFire - Dmitry Naumenko
1aa2f1d927
Removed sqlite/ColumnSchemaBuilder::comment() method override
9 years ago
SilverFire - Dmitry Naumenko
0fe27b9d3b
Refactored code in PR #9441
9 years ago
Chris Harris
5316576361
Fixes `after()` column string builder ( #11362 )
9 years ago
Alexander Makarov
2c325fbd48
Added `@since`, adjusted changelog #9425
9 years ago
Alexander Makarov
df6cdf7ad5
Fixed code style
9 years ago
PowerGamer1
73eb62a3cd
DBMS specific workarounds for unsupported SQL92 form of `SELECT EXISTS()` ( #11369 )
9 years ago
PowerGamer1
806eb57990
Fixes #9425 : ActiveQuery::exists() should generate SELECT EXISTS() ( #11363 )
9 years ago
A Slatius
293feeb522
Update QueryInterface.php
...
Missing closing bracket in OR condition example
9 years ago
Ivaylo Ushev
5921865459
Fixed : #11270 - Error when link record in one to many relation. ( #11301 )
...
Fixed : #11270 - Error when link record in one to many relation.
9 years ago
Alexander Makarov
48a2df5d52
Fixes #11283 : `ActiveRecord::unlink()` is not setting FK to `null` before deleting itself anymore
9 years ago
Chris Harris
e8c3f6cc6f
Fixing tests
9 years ago
Chris Harris
5c4001d84b
Schema Builder Patterns Excel document in /docs folder (temp storage).
...
Fixed some schema builder patterns.
Added more information to upgrade docs.
9 years ago
SilverFire - Dmitry Naumenko
7229b3aa7d
QueryBuilder::buildAndCondition() - added Expression value extraction
...
Updated CHANGELOG
Added test case for param binding in `or` condition
Closes #11093
9 years ago
CedricYii
2bd14098f9
Fix Expression parameter binding in 'And' clause
9 years ago
Klimov Paul
e4d9ed5182
code style fix
9 years ago
Chris Harris
98ac811858
Unsigned switch is now set when calling `unsigned()` on pks.
9 years ago
Chris Harris
2f91889b70
Removed `unsignedPrimaryKey()` schema builder type; now, the `unsigned()` modifier works with primary key types e.g. `pk()->unsigned()` or `bigpk()->unsigned()`.
9 years ago
Chris Harris
b697e173fc
Fixed `unsigned()` modifier to enable use with PKs.
9 years ago
Chris Harris
553cca642c
Reverted `unsigned()` pk modifier
9 years ago
Chris Harris
030ee68b01
Testing `unsigned()` modifier on PKs (now `$this->primaryKey()->unsigned()` works)
9 years ago
Carsten Brandt
191f2a4943
fixed phpdoc type names
9 years ago
Carsten Brandt
af75262541
fixed sqlite bigPk creation
9 years ago
Carsten Brandt
c5a60ce2ec
Avoid `new $this->modelClass` in ActiveQuery::findWith()
...
reduces the issue described in #8639 to `joinWith()` and `asArray()`.
close #10940
9 years ago
SilverFire - Dmitry Naumenko
2201bf14e2
Fixed parameters binding to the SQL query in `yii\db\mysqlSchema::findConstraints()`
...
Closes #10946
9 years ago
Carsten Brandt
762b9207ea
Avoid some calls to `new $this->modelClass` in ActiveQuery
...
this fixes some cases of the problem described in #8639 and is fully BC.
Fixing other places may need BC breaks.
9 years ago
Chris Harris
3761682edf
Upgraded some tests. Fixed MySQL test fixtures to create all tables with InnoDB.
9 years ago
Chris Harris
81ff4752d9
Added CHECK modifier to PK schema pattern. Modified UNSIGNED tests to not include modifier by default (i.e. only present when testing DBMSes that support it).
9 years ago
Chris Harris
96fa375b16
Refactored to a more functional way of accessing database connection
9 years ago
Chris Harris
6a8348da5f
AFTER column name is now escaped by safe method
9 years ago
Chris Harris
f52f60db0f
Renamed category constants
9 years ago
Chris Harris
c50ba2e800
Fixed comment [skip ci]
9 years ago
Chris Harris
d18563bd38
Fixed comment formatting. Renamed ColumnSchemaBuilder::CAT_TEXT to ColumnSchemaBuilder::CAT_STRING. [skip ci]
9 years ago
Chris Harris
51b99320bd
Sqlite specific schema builder class actually gets loaded now
9 years ago
Chris Harris
eaeb926768
Adds `char` datatype to framework
9 years ago
Alexander Makarov
5c4e2d4372
Removed unnecessary parentheses
9 years ago
Alexander Makarov
1f7134634b
Use static:: instead of $this for static method calls
9 years ago
Alexander Makarov
1af5980b35
Removed unused use statement, replaced preg_split with explode
9 years ago