From 6f5348377335626c427df06915604ee7c077d6ea Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 7 Apr 2004 14:21:29 +0000 Subject: [PATCH] bug 931034 big number data entry --- ChangeLog | 4 ++++ tbl_change.php | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ed3d4e932f..3dd57c3735 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-04-07 Marc Delisle + * tbl_change.php, bug 931034, big number data entry, + thanks to Dmitry (yrtimd) + 2004-04-06 Marc Delisle * main.php, complete the fix for bug 922054 diff --git a/tbl_change.php b/tbl_change.php index f0b32f5d97..815d1e0f1f 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -744,12 +744,15 @@ foreach($loop_array AS $vrowcount => $vrow) { // types (int or float), the length is not a limit on the values that // can be entered, so let's be generous (20) (we could also use the // real limits for each numeric type) + // 2004-04-07, it turned out that 20 was not generous enough + // for the maxlength if ($is_char) { $fieldsize = (($len > 40) ? 40 : $len); $maxlength = $len; } else { - $fieldsize = $maxlength = 20; + $fieldsize = 20; + $maxlength = 99; } // end if... else... echo "\n"; ?>