Author: dr
Date: Thu Jan 10 14:28:51 2008
New Revision: 7121
Log:
- Make the reader understand defaulted text columns... for some reason there
are quotes around it now.
Modified:
trunk/DatabaseSchema/src/handlers/sqlite/reader.php
Modified: trunk/DatabaseSchema/src/handlers/sqlite/reader.php
==============================================================================
--- trunk/DatabaseSchema/src/handlers/sqlite/reader.php [iso-8859-1] (original)
+++ trunk/DatabaseSchema/src/handlers/sqlite/reader.php [iso-8859-1] Thu Jan 10
14:28:51 2008
@@ -121,6 +121,14 @@
if ( $row[4] != '' )
{
$fieldDefault = $row[4];
+ if ( $fieldType == 'text' )
+ {
+ // strip enclosing single quotes if needed
+ if ( $fieldDefault[0] == "'" && substr( $fieldDefault, -1
) == "'" )
+ {
+ $fieldDefault = substr( $fieldDefault, 1, -1 );
+ }
+ }
}
$fieldAutoIncrement = false;
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components