Closed surfer190 closed 9 years ago
I noticed that for a particular field a value of -1 was returned from the information_schema query for $row['CHARACTER_MAXIMUM_LENGTH'].
-1
information_schema
$row['CHARACTER_MAXIMUM_LENGTH']
The resulting mysql create script was trying to create a field of negative length. To handle this I suggest:
mysql create
if ($row['CHARACTER_MAXIMUM_LENGTH'] < 0){ $row['CHARACTER_MAXIMUM_LENGTH'] = 255; }
What is you opinion?
Hmm.. I've never found this. I think it's a good patch. :D
Done, @surfer190
I noticed that for a particular field a value of
-1
was returned from theinformation_schema
query for$row['CHARACTER_MAXIMUM_LENGTH']
.The resulting
mysql create
script was trying to create a field of negative length. To handle this I suggest:What is you opinion?