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
Alexander Kochetov
d5176a463f
better exception message
...
- yii\db\BaseActiveRecord::findByCondition better exception
- yii\db\ActiveRecord::findByCondition better exception
close #6704
2014-12-31 14:53:44 +01:00
Yuri Morozov
b9a6b65e89
Implicit type casting to avoid buggy dblib issues
2014-12-25 23:49:20 +03:00
Veaceslav Medvedev
89406502ad
Fixed typo in phpdoc
2014-12-24 00:59:13 +02:00
Paul Klimov
5ad6ba5c9e
Fix from e719ff5 moved to yii\sphinx\Query
2014-12-23 18:39:52 +02:00
Paul Klimov
e719ff5854
yii\db\Query::queryScalar() fixed to use static when creating subquery
2014-12-23 18:17:17 +02:00
artyhedgehog
4e5b3b043e
Update QueryInterface.php
...
A back quote sign in docblock missed.
2014-12-22 11:14:16 +03:00
wenbin1989
2202ae6cb8
Fixes #6080 : Oracle DB schema did not load column types correctly
2014-12-16 23:21:11 -05:00
Carsten Brandt
073982ab0a
Update BaseActiveRecord.php
...
The exceptions thrown on error are db exceptions.
2014-11-30 21:02:43 +01:00
Qiang Xue
83b0b3d480
Fixes #6311 : Optimistic lock for ActiveRecord does not work as expected
2014-11-29 20:10:53 -05:00
Carsten Brandt
8b79293ff2
added missing @since annotations
2014-11-27 18:11:14 +01:00
Alexander Makarov
7b20bdeeb2
Fixes #6279 : yii\db\Schema::getLastInsertID() was passing wrong default schema name to PDO
2014-11-27 16:51:29 +03:00
Andrey Grachov
25a7c84ef2
Fixes #6271 : Query caching returns the same data when running the same SQL with different fetch modes
2014-11-26 11:10:55 -05:00
Carsten Brandt
cc8ffe364e
added support for yii\db\Expression to querybuilder BETWEEN and LIKE
...
fixes #6164
2014-11-23 01:41:15 +01:00
Carsten Brandt
db56384fcf
improved documentation about loadDefaultValues()
...
issue #6126
2014-11-20 11:50:32 +01:00
Qiang Xue
9eedfd054e
Fixed test break.
2014-11-16 12:31:02 -05:00
Qiang Xue
ab1f32ef76
Fixes #4492 : Support PostgreSQL-specific syntax for QueryBuilder::alterColumn()
2014-11-16 10:47:46 -05:00
Carsten Brandt
38d0570843
fixed unlink() for array valued attributes
...
return value would not be a valid array when json encoded after unlink().
fixes #6065
2014-11-15 21:42:36 +01:00
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.
2014-11-15 08:38:24 -05:00
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; ``
2014-11-15 08:32:47 -05:00
wenbin1989
39a358c269
oracle db doesn't support ON UPDATE in FOREIGN KEY. remove ON UPDATE section in method addForeignKey.
2014-11-15 08:32:47 -05:00
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.
2014-11-15 08:32:47 -05:00
Qiang Xue
9da53b702c
typo fix [skip ci]
2014-11-03 17:05:00 -05:00
Qiang Xue
5bdf36d9c8
Fixes #5780 : QueryBuilder::batchInsert() may cause "undefined index" error
2014-10-26 21:03:03 -04:00
Alexander Mohorev
bb8550886e
PHP type casting
2014-10-25 15:30:03 +03:00
Thiago Talma
8a1bcd2775
one more example
2014-10-24 21:43:16 -02:00
Qiang Xue
2544e86d2c
Fixes #5735 : Added yii\bootstrap\Tabs::renderTabContent to support manually rendering tab contents
2014-10-24 07:54:48 -04:00
Alexander Makarov
99a818c0b8
Fixes #3630 : yii\db\Command::queryInternal() is now protected
2014-10-24 03:47:20 +04:00
Qiang Xue
5829020eff
Fixes #5223 : Query builder now supports selecting sub-queries as columns
2014-10-19 10:58:49 -04:00
Carsten Brandt
292a9ff55b
Add support for yii\db\Expression to QueryBuiler simple conditions
...
fixes #5601
2014-10-17 13:32:54 +02:00
Alexander Makarov
02622b6fe4
phpdoc fixes and additions
2014-10-14 01:35:21 +04:00
Carsten Brandt
a375a62070
bump minimum required cubrid version
...
there is no reliable way to determine the cubrid PDO extension version used
and also no reliable way to detect which combination of server and client produces wrong behavior.
By requiering 9.3 or higher in both client and server we can be sure it works.
fixes #852
2014-10-12 04:06:13 +02:00
Klimov Paul
15c8935db1
Fixed yii\mongodb\ActiveRecord unable to fetch 'hasMany' referred by array of \MongoId
2014-10-09 14:55:43 +03:00
Alexander Makarov
cba52e3c5e
Fixes #5382 : renamed "pivot table" to "junction table" since it's correct term to use
2014-10-07 01:13:17 +04:00
Carsten Brandt
4054b2196f
fixed broken links
2014-10-06 22:04:59 +02:00
Serge Postrash
5acf17e658
Fixed phpdoc for yii\db\Query [skip ci]
2014-10-05 11:24:40 +04:00
Carsten Brandt
0df9a82a7f
updated documentation and tests
...
fixes #5331
2014-10-03 15:25:55 +02:00
Qiang Xue
d2b864da84
prepare for 2.0.0-rc release.
2014-09-27 21:59:54 -04:00
Carsten Brandt
f76e767edd
added docs for #5147
2014-09-24 15:35:04 +02:00
Qiang Xue
566ed3c594
Fixes #5147 : null is not handled correctly for arbitrary operator in SQL.
2014-09-24 08:48:44 -04:00
Carsten Brandt
4772be9cc4
doc typo
...
fixes #5147
[ci skip]
2014-09-24 14:16:34 +02:00
Carsten Brandt
9df21d46f3
reverted addition of $where property
2014-09-24 13:39:03 +02:00
Carsten Brandt
222f9ddfad
added missing documentation about the NOT operator in Query
...
fixes #5147
2014-09-24 12:53:33 +02:00