Hi Marc,<div><br></div><div>I found the place where this issue generates. When we try click on Table->Structure->Column->Change link it goes to the tbl_alter.php file and within that the "<span class="Apple-style-span" style="font-family: 'dejavu sans mono', monospace; font-size: 11px; white-space: pre-wrap; -webkit-text-size-adjust: none; background-color: rgb(255, 255, 255); ">append_fields_form</span>" is process by using tbl_properties.inc.php file. At line number 325 in tbl_properties.inc.php "PMA_getSupportedDatatypes(true, $type_upper);" function is call to get the table type select options. </div>
<div><br></div><div>You can find at line 3118 in "PMA_getSupportedDatatypes(true, $type_upper);" the option selection is set as </div><div><div><b>if ($selected == $value) {</b></div><div><b>                    $retval .= "<option selected='selected'>$value</option>";</b></div>
<div><b>                } else {</b></div><div><b>                    $retval .= "<option>$value</option>";</b></div><div><b>                }</b></div></div><div> But if you use an echo you can see that <b>$selected contains </b><span class="Apple-style-span" style="color: rgb(204, 0, 0); font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); ">VARCHAR(45)</span><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); "> as the value and </span><b>$value contains </b><span class="Apple-style-span" style="color: rgb(204, 0, 0); font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); ">VARCHAR </span><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); ">as the value. So when we try to edit the tables which are having VARCHAR type columns it does not select the value at the options. </span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre; background-color: rgb(255, 255, 255); ">I can modify the logic by splitting the </span><b>$selected </b>by "(" and solve the issue. Is there any better solution you can suggest. If there any please let me know. Thank you. </div>
<div><br></div><div>Regards,</div><div>Thilanka.</div><div><br></div><div>-- </div><div><div><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px"><div style="text-align:left">L G Thilanka Kaushalya     <br>
Computer Science & Engineering,    <br><div style="color:rgb(80, 0, 80)">University of Moratuwa,<br>Sri Lanka<span></span><br>                          <br></div></div>Connect with me at,<br>      Gmail        : <a href="mailto:lgtkaushalya@gmail.com" style="color:rgb(0, 0, 204)" target="_blank">lgtkaushalya@gmail.com</a><br>
      Twitter       : @thilanka_k<br>      Facebook  : Thilanka Kaushalya<br>      Yahoo       : <a href="mailto:lgtkaushalya@yahoo.com" style="color:rgb(0, 0, 204)" target="_blank">lgtkaushalya@yahoo.com</a></span></div>
<div>      Blog          : <a href="http://coders-view.blogspot.com/" target="_blank">http://coders-view.blogspot.com/</a></div><br><br>
</div>