Menu

#409 (2.2.6) max number of characters of int fields

2.2.6
fixed
None
1
2013-06-11
2002-05-15
Anonymous
No

Hi,
its not possible to fill an int(2) or greater field
with a value of more than 4 characters. I have
modified the file tbl_change.php to get the right size
of the input-textfield.

Roland v.Guerard

Discussion

  • Marc Delisle

    Marc Delisle - 2002-05-15
    • assigned_to: nobody --> lem9
     
  • Loïc Chapeaux

    Loïc Chapeaux - 2002-05-16

    Logged In: YES
    user_id=144058

    Hi All!

    >so, shouldn't we, for int(2)
    >- limit to 2
    >- add a faq entry?

    I don't think so because an int(2) only means the value
    will be displayed with two positions if it is a simple
    digit.

    From the MySQL manual:
    "This optional width specification is used to left-pad the
    display of values whose width is less than the width
    specified for the column, but does not constrain the range
    of values that can be stored in the column, nor the number
    of digits that will be displayed for values whose width
    exceeds that specified for the column."

    Loc

     
  • Marc Delisle

    Marc Delisle - 2002-05-17
    • priority: 5 --> 1
    • summary: max number of characters of int fields --> (2.2.6) max number of characters of int fields
     
  • Marc Delisle

    Marc Delisle - 2002-05-17

    Logged In: YES
    user_id=210714

    Fixed in the cvs for main branch.

     
  • Alexander M. Turek

    • status: open --> closed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed --> fixed
     
MongoDB Logo MongoDB