summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mysql/mysql_driver.php
diff options
context:
space:
mode:
authordanmontgomery <noctrum@gmail.com>2011-08-21 21:31:22 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-10-27 14:21:51 +0200
commitad4681f7889beb66f44995882c3977239eb1b3df (patch)
treea521947d48cf3d7e40521255e1eddef0a96250d2 /system/database/drivers/mysql/mysql_driver.php
parent57514b96b89431d37b3eeea283a3ae0f36ac7ef4 (diff)
Fixed issue #150 (for mysql and mysqli), 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;
}
// --------------------------------------------------------------------