Skip to content

Commit

Permalink
get field precision and scale information
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/MDB2/trunk@232878 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
quipo committed Mar 28, 2007
1 parent ef2c6fd commit 33a29f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MDB2/Driver/Reverse/ibase.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ function getTableFieldDefinition($table, $field_name)
$field_name = $db->quote(strtoupper($field_name), 'text');
$query = "SELECT RDB\$RELATION_FIELDS.RDB\$FIELD_NAME AS name,
RDB\$FIELDS.RDB\$FIELD_LENGTH AS \"length\",
RDB\$FIELDS.RDB\$FIELD_PRECISION AS \"precision\",
(RDB\$FIELDS.RDB\$FIELD_SCALE * -1) AS \"scale\",
RDB\$FIELDS.RDB\$FIELD_TYPE AS field_type_code,
RDB\$FIELDS.RDB\$FIELD_SUB_TYPE AS field_sub_type_code,
RDB\$RELATION_FIELDS.RDB\$DESCRIPTION AS description,
Expand Down

0 comments on commit 33a29f5

Please sign in to comment.