schema reports mismatch in length

malc_b - May 26, 2009 - 15:12
Project:Computed Field
Version:6.x-1.0-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Typical report from schema is:

column field_discount_value - difference on: length
declared: array('description' => t('TODO: please describe this field!'), 'type' => 'int', 'length' => '10')
actual: array('description' => t('TODO: please describe this field!'), 'type' => 'int', 'not null' => FALSE, 'disp-width' => '10')

I guess the error is in the change in name from length to disp-width.

#1

deekayen - August 21, 2009 - 07:41

length and disp-width are separate items. they just happen to have the same value and similar purposes.

#2

malc_b - September 3, 2009 - 11:14

So I guessed wrong then. The error is that the declared and the actual are different, don't match and the fix is NOT just to change the name.

 
 

Drupal is a registered trademark of Dries Buytaert.