Commit: f65411568cf605290e70c3afe1ffa8895100a99d

Author: Richard Genthner | Date: 2010-12-16 21:52:09 -0500
I have tested your patch and verified the results, before and after. Resolves ticket 159.
diff --git a/libraries/lithium/data/source/database/adapter/Sqlite3.php b/libraries/lithium/data/source/database/adapter/Sqlite3.php index e381951..58fc6e2 100755 --- a/libraries/lithium/data/source/database/adapter/Sqlite3.php +++ b/libraries/lithium/data/source/database/adapter/Sqlite3.php @@ -135,7 +135,12 @@ class Sqlite3 extends \lithium\data\source\Database { $fields = array(); foreach ($columns as $column) { - list($type, $length) = explode('(', $column['type']); + if (strpos($column['type'], '(')){ + list($type, $length) = explode('(', $column['type']); + }else{ + $type = $column['type']; + $length = null; + } $length = trim($length, ')'); $fields[$column['name']] = array( 'type' => $type,