Fixes #1433: added default DB connection to SqlDataProvider.

This commit is contained in:
Qiang Xue
2013-12-05 10:09:44 -05:00
parent 24ebc9fc3d
commit 2fca1e9061

View File

@@ -64,9 +64,8 @@ class SqlDataProvider extends BaseDataProvider
{ {
/** /**
* @var Connection|string the DB connection object or the application component ID of the DB connection. * @var Connection|string the DB connection object or the application component ID of the DB connection.
* If not set, the default DB connection will be used.
*/ */
public $db; public $db = 'db';
/** /**
* @var string the SQL statement to be used for fetching data rows. * @var string the SQL statement to be used for fetching data rows.
*/ */