diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-08-21 23:22:23 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-08-21 23:22:23 +0200 |
commit | 297eb2fa755d8d0202511d4181dc4dab115e842c (patch) | |
tree | fbb39a5e46f35e43af0af0aab6f12cdc7e92bd6a /system/database/drivers/mysqli/mysqli_driver.php | |
parent | 70fb1fdb96df64f2282d00330c98f79aa0adec50 (diff) | |
parent | fc7564545fb166553a7080b8dbd2b9941925734d (diff) |
Merge pull request #247 from danmontgomery/develop
Fixes issue #150, field_data() now returns the actual column length
Diffstat (limited to 'system/database/drivers/mysqli/mysqli_driver.php')
-rw-r--r-- | system/database/drivers/mysqli/mysqli_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/mysqli/mysqli_driver.php b/system/database/drivers/mysqli/mysqli_driver.php index ddcaff323..ccd110f79 100644 --- a/system/database/drivers/mysqli/mysqli_driver.php +++ b/system/database/drivers/mysqli/mysqli_driver.php @@ -442,7 +442,7 @@ class CI_DB_mysqli_driver extends CI_DB { */ function _field_data($table) { - return "SELECT * FROM ".$table." LIMIT 1"; + return "DESCRIBE ".$table; } // -------------------------------------------------------------------- |