Commit Graph

98 Commits

Author SHA1 Message Date
Paul Klimov
783a2ea6f6 "CActiveRecordTest::testCountWithHavingRelational()" has been updated exposing issue #2201 2013-03-21 13:17:53 +02:00
Paul Klimov
71388e1b69 Test method "CActiveRecordTest::testFindBySinglePkBySingleSizeArrayWithMixedKeys()" converted to "CActiveRecordTest::testFindBySinglePkByArrayWithMixedKeys()", checking both single and multy size pk arrays. 2013-03-20 13:20:05 +02:00
Paul Klimov
d8037f7b6d Test method "CActiveRecordTest::testFindBySinglePkBySingleSizeArrayWithMixedKeys()" has been added to expose issue #2216. 2013-03-20 13:09:10 +02:00
resurtm
28a3c79185 Fixes #2121: CMssqlSchema::resetSequence() incorrectly resets sequence. 2013-03-17 11:00:19 +06:00
CeBe
c70936afd2 Merge pull request #2160 branch '2159-fix-delete-with-join' of https://github.com/serebrov/yii into serebrov-2159-fix-delete-with-join
* '2159-fix-delete-with-join' of https://github.com/serebrov/yii:
  Fixes #2159 - problem with command builder for delete with joins.

Conflicts:
	CHANGELOG
2013-03-12 16:53:54 +01:00
Paul Klimov
4a17cf0e4a "CActiveFinder::count()" has been updated allowing correct records count with having. 2013-03-04 15:45:59 +02:00
Paul Klimov
a2fead97a7 Test for count with having have been added to "CActiveRecordTest" test case. 2013-03-04 14:35:06 +02:00
Boris Serebrov
4fdf2d0044 Fixes #2159 - problem with command builder for delete with joins. 2013-03-01 22:19:46 +02:00
Carsten Brandt
174a0694ff Merge branch 'master' of https://github.com/yiisoft/yii into 1381-stat-relation-select
* 'master' of https://github.com/yiisoft/yii: (144 commits)
  Fixes #1567 Added filterSelector to CGridView
  Renamed the CONTRIBUTING file to CONTRIBUTING.md so that GitHub effectively uses the Markdown syntax already present in the file when presenting it.
  Fixes #1694 - doc fix
  Added issue number
  fixed whitespace issues introduced with #851
  Updated CHANGELOG
  Fixes #1584 same fix for CListView as already done for CGridView
  Fixes #1344 same fix for CListView as already done in CGridView
  Fixes #1104 same fix for CListView as already done for CGridView
  Fixes #1676 - proper grouping when no group field is specified
  Added addPrimaryKey and dropPrimaryKey commands to CDbMigration class in response to enh req #848
  [messages/ja] yii.php updated
  csfix - thx @resurtm
  typo in changelog
  Reverted PR #1467 (Issue #1465, fixes related issue #1661)
  Reverted PR #1662
  Better naming
  small update to documentation of filterAjaxOnly()
  Coding style fix
  Fixing bug #1661
  ...

Conflicts:
	CHANGELOG
2012-11-14 14:06:05 +01:00
Carsten Brandt
70374843e7 added test for #1381 and changelog line 2012-11-14 14:03:01 +01:00
resurtm
705d9ed2ce Fixed #1652: added CSqliteSchema::renamteTable() 2012-11-04 14:56:19 +06:00
Alexander Makarov
8bad9a5905 Proper fix for CDbCommand::setFetchMode wasn't accepting additional arguments needed for PDO::FETCH_CLASS 2012-10-21 00:00:18 +04:00
Alexander Makarov
425284b67f Fixed the bug that CDbCommand::setFetchMode wasn't accepting additional arguments needed for PDO::FETCH_CLASS (reverse-merged from commit d0154ef613) 2012-10-20 23:26:04 +04:00
Alexander Makarov
d0154ef613 Fixed the bug that CDbCommand::setFetchMode wasn't accepting additional arguments needed for PDO::FETCH_CLASS 2012-10-20 22:55:29 +04:00
resurtm
551c42b945 Fixes #1407: CDbCommandBuilder::createCountCommand() used to bind parameters for unused ORDER clause and unused SELECT part. 2012-09-16 12:51:46 +06:00
Alexander Makarov
3f74e175a2 Bug #837: Fixed method CDbCriteria::__wakeup(), allowing to keep custom names for params and update all string parts for automatic params 2012-09-09 00:22:55 +04:00
Alexander Makarov
1970c2cd66 Merge remote-tracking branch 'resurtm/1183-db-command-where-append'
Conflicts:
	CHANGELOG
2012-09-08 14:02:04 +04:00
resurtm
126722fd46 Merge branch 'master' of git://github.com/yiisoft/yii into oci-unit-tests 2012-09-08 13:10:29 +06:00
resurtm
9a3b6093f8 Merge branch 'master' of git://github.com/yiisoft/yii into 1183-db-command-where-append
Conflicts:
	CHANGELOG
2012-09-08 09:43:44 +06:00
Carsten Brandt
c658823737 unit test for scenario described in #507
passing with current code, so not reproduceable
2012-09-07 17:58:25 +02:00
Carsten Brandt
05addd7fda Merge pull request #1354 from cebe/1102-fix-beforeFind-scopes
need to move beforeFindInternal() after adding scopes
2012-09-07 08:11:32 -07:00
Carsten Brandt
f3e7a8f006 need to move beforeFindInternal() after adding scopes
fix #1102 was not 100% correct as it was not possible to apply
additional scopes in relation definition and query criteria.
2012-09-07 17:06:53 +02:00
resurtm
9405265760 Test for #110 fix. 2012-09-05 19:52:04 +06:00
resurtm
9b8e0ff796 COciTest: common credentials. 2012-09-04 22:24:02 +06:00
resurtm
6a2c0dfa07 COciTest: temporary removed problem places. 2012-09-04 22:22:26 +06:00
resurtm
f182223ff6 COciTest: explaining comments and CS issues. 2012-09-04 22:09:28 +06:00
resurtm
fe2dcfc283 COciTest: pagination (LIMIT + OFFSET alternative) asserts. 2012-09-04 21:48:05 +06:00
resurtm
6bf7cc5416 Merge branch 'master' of git://github.com/yiisoft/yii into oci-unit-tests
Conflicts:
	CHANGELOG
2012-09-04 21:40:27 +06:00
resurtm
0c73cf2024 COciTest: added asserting empty column comments. 2012-09-04 21:39:46 +06:00
Carsten Brandt
00dc4add94 fixes issue #1330
default value null for string column in SQLite
2012-09-04 03:12:18 +02:00
Carsten Brandt
8502333cad added unit test for issue #1330
unit test is currently failing
2012-09-04 02:44:22 +02:00
Carsten Brandt
33ebfd63e8 fixes #1326, added unit tests for #741 2012-09-03 21:33:48 +02:00
resurtm
27a0be3cce Oracle unit tests almost works. Dirty working draft ready. 2012-09-03 23:59:18 +06:00
Carsten Brandt
be1fbf1982 Merge branch 'master' into 93-relational-beforefind-criteria-modification
* master: (180 commits)
  Updated changelog with last-modified date change.
  Changed the CHttpCacheFilter to use RFC 1123 complaint dates when returning the last-modified header.
  tabs...
  gii: better default validation "length" rule for fixed-point / floating-point field type (MYSQL)
  fixes #1319
  updated comment in CHttpSession
  Update framework/YiiBase.php
  Update docs/guide/database.arr.txt
  New unit test for enhanced $gCProbability s/getters in CHttpSession #486. Fixed those methods to process corner cases properly. Initial $gCProbability is now double(1.0), was > 1.0 before.
  Bug #112: MSSQL: database abstraction layer now uses native transaction support of the SQLSRV driver.
  Forgot about spaces in comments creating procedure call. [ci skip]
  Better comments testing method name.
  Forgot about local MSSQL database settings.
  MSSQL unit testing SQL file reformatted and decorated. MSSQL testing class improved. Added unit tests for column comments retrieving.
  Removed old message.
  Update docs/guide/topics.i18n.txt
  Update docs/guide/topics.i18n.txt
  Requirements checker: russian (ru_RU) messages.
  Minor fixes and refinements to the MSSQL unit tests.
  better fix for issues #124
  ...

Conflicts:
	UPGRADE
2012-09-03 19:21:10 +02:00
resurtm
3b8a25e929 Oracle unit tests: "type" table added. 2012-09-03 22:31:06 +06:00
Carsten Brandt
f63fa89a3d added unit tests for beforeFind() and afterFind() on empty result
when a query does not return results beforeFind() is called for all
eager relations even when main query did not return a result.
This is a behavior change, things are all consistent now.
afterFind() should of course never get called then.
2012-09-03 18:24:30 +02:00
resurtm
3307ae05b9 Oracle unit tests DDL and DML revisited. 2012-09-03 22:11:31 +06:00
resurtm
43ffa493fb Added 'profiles' table to the Oracle unit tests. 2012-09-02 20:14:32 +06:00
resurtm
12181d2ac6 Oracle unit tests initial commit with simple working asserts, SQL and code. 2012-09-02 18:58:05 +06:00
resurtm
5d29a4aaf8 Merge branch 'master' of git://github.com/yiisoft/yii into 112-sqlsrv-transactions 2012-08-29 23:55:04 +06:00
resurtm
62d0119cce Bug #112: MSSQL: database abstraction layer now uses native transaction support of the SQLSRV driver. 2012-08-29 23:52:27 +06:00
resurtm
3ff8b4f404 Forgot about spaces in comments creating procedure call. [ci skip] 2012-08-29 23:09:05 +06:00
resurtm
a34eec579d Better comments testing method name. 2012-08-29 23:04:44 +06:00
resurtm
138b61e05a Forgot about local MSSQL database settings. 2012-08-29 23:04:02 +06:00
resurtm
289444a96d MSSQL unit testing SQL file reformatted and decorated. MSSQL testing class improved. Added unit tests for column comments retrieving. 2012-08-29 23:02:03 +06:00
resurtm
3ed64c2fce Minor fixes and refinements to the MSSQL unit tests. 2012-08-29 18:05:08 +06:00
resurtm
550019f5e2 Merge branch 'master' of git://github.com/yiisoft/yii into 1289-mssql-comments
Conflicts:
	CHANGELOG
2012-08-29 17:55:43 +06:00
Carsten Brandt
d77234b1e7 Merge branch 'master' of https://github.com/yiisoft/yii into issue-124
* 'master' of https://github.com/yiisoft/yii: (651 commits)
  Updated guide Gii Model Generator page screenshot.
  adjusted CHANGELOG
  Requirements checking slightly improved.
  Enhanced CHANGELOG description
  Requirements checker: added support of the Oracle database (pdo_oci extension)
  MSSQL driver types refinements.
  Requirements checker: added support of the MSSQL (pdo_dblib and pdo_sqlsrv extensions).
  Language fixes.
  Preparations for merging fixes of the #556 into 1.1.13 codebase.
  [docs][blog] 'yiic' to 'Gii'
  ajaxUpdate is never false in jquery.yiilistview.js
  Added /docs/guide/fr/caching.overview.twt
  Added /docs/guide/fr/basics.controller.txt
  Added /docs/guide/fr/basics.mvc.txt
  Update framework/web/filters/CHttpCacheFilter.php
  Update docs/guide/fr/toc.txt
  [NL] Dutch messages translation updated
  added history.js license
  prepare for next release.
  prepare for 1.1.12 release.
  ...

Conflicts:
	CHANGELOG
2012-08-28 21:21:27 +02:00
resurtm
02e245ee25 MSSQL tests: added support of the SQLSRV, tests actualized to the MSSQL Server 2008 R2 and latest framework version. 2012-08-26 11:26:21 +06:00
resurtm
0353005946 Merge branch 'master' of git://github.com/yiisoft/yii into 1183-db-command-where-append
Conflicts:
	CHANGELOG
2012-08-25 17:00:59 +06:00