Author: hmbrand Date: Tue Jun 7 05:51:55 2011 New Revision: 14884 Modified: dbi/trunk/lib/DBI/DBD/SqlEngine.pm
Log: TYPE is numeric, TYPE_NAME is alphanumeric Signed-off-by: H.Merijn Brand (Tux) <[email protected]> Modified: dbi/trunk/lib/DBI/DBD/SqlEngine.pm ============================================================================== --- dbi/trunk/lib/DBI/DBD/SqlEngine.pm (original) +++ dbi/trunk/lib/DBI/DBD/SqlEngine.pm Tue Jun 7 05:51:55 2011 @@ -877,7 +877,8 @@ $attrib eq "NAME" and return [ $sth->sql_get_colnames() ]; - $attrib eq "TYPE" and return [ ("CHAR") x scalar $sth->sql_get_colnames() ]; + $attrib eq "TYPE" and return [ (DBI::SQL_VARCHAR()) x scalar $sth->sql_get_colnames() ]; + $attrib eq "TYPE_NAME" and return [ ("VARCHAR") x scalar $sth->sql_get_colnames() ]; $attrib eq "PRECISION" and return [ (0) x scalar $sth->sql_get_colnames() ]; $attrib eq "NULLABLE" and return [ (1) x scalar $sth->sql_get_colnames() ];
