Menu

#1 Field length eval bug in tbl_change

open
nobody
None
5
2001-09-11
2001-09-11
No

Since I'm using Konqueror as my main browser, I found
a small bug in
tbl_change.php since Konqueror interprets a
'maxlength=' (i.e. without a
value) as 0 (zero). Netscape ignores this unset value.

OK: you have to change line 85 of
wwwdocs/lisa/tbl_change.php:
yours:
if (eregi("char",$type)) $len =
@mysql_field_len($result,$i);
correct:
if (eregi("char",$row_table_def["Type"]))
$len = mysql_field_len($result,$i);

otherwise the $len will NOT be set at all !

Discussion


Log in to post a comment.

MongoDB Logo MongoDB