commit | 3b9319bcb11d4a17d9b19a62aef718891f4722ff | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@bofh.bg> | Mon Jan 28 16:13:46 2013 -0800 |
committer | Andrey Andreev <narf@bofh.bg> | Mon Jan 28 16:13:46 2013 -0800 |
tree | f0ee86528a2672ffea5444f5bc6a41eff0ccce2f | |
parent | 7bea4fb8a880d774f7b399f8c2cbcd75ce85123c [diff] | |
parent | b835a4f3b3f8fccd7ce457d4ab13344d3dcb91a9 [diff] |
Merge pull request #2204 from starsquare/develop Fix list_fields seek bug
diff --git a/system/database/drivers/mssql/mssql_result.php b/system/database/drivers/mssql/mssql_result.php index ea3f8e4..b6e5f2b 100644 --- a/system/database/drivers/mssql/mssql_result.php +++ b/system/database/drivers/mssql/mssql_result.php
@@ -74,6 +74,7 @@ public function list_fields() { $field_names = array(); + mssql_field_seek($this->result_id, 0); while ($field = mssql_fetch_field($this->result_id)) { $field_names[] = $field->name;
diff --git a/system/database/drivers/mysql/mysql_result.php b/system/database/drivers/mysql/mysql_result.php index 1ed2759..a2affcb 100644 --- a/system/database/drivers/mysql/mysql_result.php +++ b/system/database/drivers/mysql/mysql_result.php
@@ -89,6 +89,7 @@ public function list_fields() { $field_names = array(); + mysql_field_seek($this->result_id, 0); while ($field = mysql_fetch_field($this->result_id)) { $field_names[] = $field->name;
diff --git a/system/database/drivers/mysqli/mysqli_result.php b/system/database/drivers/mysqli/mysqli_result.php index 4105f99..3fe05f9 100644 --- a/system/database/drivers/mysqli/mysqli_result.php +++ b/system/database/drivers/mysqli/mysqli_result.php
@@ -74,6 +74,7 @@ public function list_fields() { $field_names = array(); + $this->result_id->field_seek(0); while ($field = $this->result_id->fetch_field()) { $field_names[] = $field->name;