From 4787413c06ec11bff1ba4b1c7a4fe667038595d0 Mon Sep 17 00:00:00 2001
From: Derek Jones
Date: Tue, 10 Feb 2009 17:32:15 +0000
Subject: fixed check for a method named 'field_names' which doesn't exist to
'list_fields' which is the correct method.
http://codeigniter.com/bug_tracker/bug/5787/
---
system/database/DB_utility.php | 2 +-
user_guide/changelog.html | 13 +++++++++----
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index 195e4c46a..6619e80e7 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -175,7 +175,7 @@ class CI_DB_utility extends CI_DB_forge {
*/
function csv_from_result($query, $delim = ",", $newline = "\n", $enclosure = '"')
{
- if ( ! is_object($query) OR ! method_exists($query, 'field_names'))
+ if ( ! is_object($query) OR ! method_exists($query, 'list_fields'))
{
show_error('You must submit a valid result object');
}
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index cb9a370bf..3d5e9b3ff 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -75,10 +75,6 @@ SVN Revision:
Database
- Added where_in to the list of expected arguments received by delete().
- - Fixed a bug when doing 'random' on order_by() (#5706).
- - Fixed a bug where adding a primary key through Forge could fail (#5731).
- - Fixed a bug when using DB cache on multiple databases (#5737).
- - Fixed a bug where TRUNCATE was not considered a "write" query (#6619).
Helpers
@@ -102,6 +98,15 @@ SVN Revision:
Bug fixes for 1.7.1
+ - Database
+
+ - Fixed a bug when doing 'random' on order_by() (#5706).
+ - Fixed a bug where adding a primary key through Forge could fail (#5731).
+ - Fixed a bug when using DB cache on multiple databases (#5737).
+ - Fixed a bug where TRUNCATE was not considered a "write" query (#6619).
+ - Fixed a bug where csv_from_result() was checking for a nonexistent method.
+
+
- Fixed assorted user guide typos or examples (#5998, #6093, #6259, #6339, #6432, #6521).
- Fixed a bug in the MySQLi driver when no port is specified
- Fixed a bug (#5702), in which the field label was not being fetched properly, when "matching" one field to another.
--
cgit v1.2.3-24-g4f1b