Skip to content

Commit

Permalink
- remove length infos from datatype if there is any
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/MDB2/trunk@218212 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Lukas Smith committed Aug 15, 2006
1 parent 4a51968 commit 0d2b1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MDB2/Driver/Reverse/Common.php
Expand Up @@ -391,7 +391,7 @@ function tableInfo($result, $mode = null)
$res[$i] = $definition[0];
$res[$i]['name'] = $field;
$res[$i]['table'] = $result;
$res[$i]['type'] = $definition[0]['nativetype'];
$res[$i]['type'] = preg_replace('/^([a-z]+).*$/i', '\\1', trim($definition[0]['nativetype']));
// 'primary_key', 'unique_key', 'multiple_key'
$res[$i]['flags'] = empty($flags[$field]) ? '' : $flags[$field];
// not_null', 'unsigned', 'auto_increment', 'default_[rawencodedvalue]'
Expand Down

0 comments on commit 0d2b1bf

Please sign in to comment.