← Back to team overview

maria-discuss team mailing list archive

Re: int(x) does nothing

 

Oh it does.
It is the display width of the integer, as you can read here
http://dev.mysql.com/doc/refman/5.7/en/numeric-type-attributes.html

in contrast to other databases where it is actually the data range.

Michael


2013/5/15 Richard Couture <rrc@xxxxxxxxxxxxxx>

> We discovered that declaring an int(x) of x characters does not seem to
> impose any restrictions what-so-ever on the size of data that can be stored
> in that int. Storing an int of greater dimension than that which was
> declared does NOT even generate a warning.
>
> Can someone please tell us why we are allowed to make such declarations
> and what are there purposes?
>
> Thanks
>
>
>
> Richard
> --
> LinuxCabal Asociación Civil
> Ing. Richard Couture
> Novell CNE, ECNE, MCNE
> HP/Compaq ASE
> Tel.: (+52) (333) 145-2638
> Cel.: (+52) (044) 333 377-7505
> Cel.: (+52) (044) 333 377-7506
> Web: http://www.LinuxCabal.org
> E-Mail: rrc@xxxxxxxxxxxxxx
> Hosted en la nube Cloud Sigma - www.CloudSigma.com
>
> AVISO DE CONFIDENCIALIDAD: Este correo electrónico, incluyendo en su caso,
> los archivos adjuntos al mismo, pueden contener información de carácter
> confidencial y/o privilegiada, y se envían a la atención única y
> exclusivamente de la persona y/o entidad a quien va dirigido. La copia,
> revisión, uso, revelación y/o distribución de dicha información
> confidencial sin la autorización por escrito de LinuxCabal está prohibida.
> Si usted no es el destinatario a quien se dirige el presente correo, favor
> de contactar al remitente respondiendo al presente correo y eliminar el
> correo original incluyendo sus archivos, así como cualesquiera copia del
> mismo. Mediante la recepción del presente correo usted reconoce y acepta
> que en caso de incumplimiento de su parte y/o de sus representantes a los
> términos antes mencionados, LinuxCabal tendrá derecho a los daños y
> perjuicios que esto le cause.
>
>
> ______________________________**_________________
> Mailing list: https://launchpad.net/~maria-**discuss<https://launchpad.net/~maria-discuss>
> Post to     : maria-discuss@lists.launchpad.**net<maria-discuss@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~maria-**discuss<https://launchpad.net/~maria-discuss>
> More help   : https://help.launchpad.net/**ListHelp<https://help.launchpad.net/ListHelp>
>

References