summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mysql/mysql_driver.php
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-08-21 23:22:23 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-08-21 23:22:23 +0200
commit297eb2fa755d8d0202511d4181dc4dab115e842c (patch)
treefbb39a5e46f35e43af0af0aab6f12cdc7e92bd6a /system/database/drivers/mysql/mysql_driver.php
parent70fb1fdb96df64f2282d00330c98f79aa0adec50 (diff)
parentfc7564545fb166553a7080b8dbd2b9941925734d (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/mysql/mysql_driver.php')
-rw-r--r--system/database/drivers/mysql/mysql_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/mysql/mysql_driver.php b/system/database/drivers/mysql/mysql_driver.php
index 872504564..f87cfea4b 100644
--- a/system/database/drivers/mysql/mysql_driver.php
+++ b/system/database/drivers/mysql/mysql_driver.php
@@ -441,7 +441,7 @@ class CI_DB_mysql_driver extends CI_DB {
*/
function _field_data($table)
{
- return "SELECT * FROM ".$table." LIMIT 1";
+ return "DESCRIBE ".$table;
}
// --------------------------------------------------------------------