[development] Why is Block table delta field only 32 chars?

FGM fgm at osinet.fr
Tue Aug 28 07:27:41 UTC 2007

Actually, most modules use a short integer starting for the deltas, so
varchar(32) is awfully big for this.

The question is rather: why is it actually a vc32 if all examples in core
and docs use integer deltas.

----- Original Message ----- 
From: "Jacob Singh" <jacob at civicactions.com>
To: <development at drupal.org>
Cc: <ca-dev at lists.civicactions.net>
Sent: Tuesday, August 28, 2007 8:49 AM
Subject: [development] Why is Block table delta field only 32 chars?

> I spent a good long while trying to figure out why my 38 char delta block
> would show up in the admin_display but would not get assigned to a region.
> realized that UPDATE ... WHERE delta= "full 38 chars" was not going to
> my truncated entry created by _block_rehash :(
> Is there a reason to limit the length of this field?
> Should I submit a patch to check for this in _block_rehash and alert the
> Best,
> Jacob

More information about the development mailing list