From 97bc010749830b183fffa7c5faf29744c095864e Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 14 May 2008 15:01:50 +0000 Subject: fixed bug #3419 where the 'database' setting for DSN connections was using the host portion of the URL instead of the path. Added ability to set other db config values in DSN connections via query string --- user_guide/changelog.html | 13 +++++++++++++ user_guide/database/connecting.html | 5 ++++- 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'user_guide') diff --git a/user_guide/changelog.html b/user_guide/changelog.html index de1818cb9..0d7265e89 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -60,8 +60,21 @@ Change Log

Version 1.6.3

Release Date: not currently released
SVN Revision: not currently released

+ +

Bug fixes for 1.6.3

+ + +

Version 1.6.2

Release Date: May 13, 2008
SVN Revision: 1155

diff --git a/user_guide/database/connecting.html b/user_guide/database/connecting.html index ee2d8c08f..bc4b2e7e7 100644 --- a/user_guide/database/connecting.html +++ b/user_guide/database/connecting.html @@ -117,8 +117,11 @@ $this->load->database($config);
$this->load->database($dsn); -

Note that if you use a DSN you will not be able to specify some of the default values like you can if you use a connection array.

+

To override default config values when connecting with a DSN string, add the config variables as a query string.

+$dsn = 'dbdriver://username:password@hostname/database?char_set=utf8&dbcollat=utf8_general_ci&cache_on=true&cachedir=/path/to/cache';
+
+$this->load->database($dsn);

Connecting to Multiple Databases

-- cgit v1.2.3-24-g4f1b