[TYPO3-dev] Default definitions of database fields
Martin Kutschker
masi-no at spam-typo3.org
Fri Feb 12 09:19:29 CET 2010
Martin Kutschker schrieb:
> Jochen Rau schrieb:
>
>> Why do we use (11) after int, tinyint? As this makes perfect sense for
>> char and varchar, it is IMO useless for int and tinyint because it does
>> NOT indicate how many numbers or bytes the field can hold. It just fills
>> the integer up with zeroes on the left.
>
> AFAIK the number denotes the column width in the output when you use the SQL shell. It has nothing
> to do with the storage format which is for integer fields a "real" byte value. One byte is used for
> tinyint.
I didn't read Jigal's post before posting.
Sorry for the dupe,
Masi
More information about the TYPO3-dev
mailing list