Index: branches/REL1_17/phase3/includes/db/DatabaseOracle.php |
— | — | @@ -793,13 +793,8 @@ |
794 | 794 | |
795 | 795 | # Returns the size of a text field, or -1 for "unlimited" |
796 | 796 | function textFieldSize( $table, $field ) { |
797 | | - $fieldInfoData = $this->fieldInfo( $table, $field); |
798 | | - if ( $fieldInfoData->type == 'varchar' ) { |
799 | | - $size = $row->size - 4; |
800 | | - } else { |
801 | | - $size = $row->size; |
802 | | - } |
803 | | - return $size; |
| 797 | + $fieldInfoData = $this->fieldInfo( $table, $field ); |
| 798 | + return $fieldInfoData->maxLength(); |
804 | 799 | } |
805 | 800 | |
806 | 801 | function limitResult( $sql, $limit, $offset = false ) { |