[Phpmyadmin-devel] trunk and new Default dropdown

Hi, There is a problem with the behavior of this new dropdown. If I add a field of type INT and let this dropdown to its default value "User-defined" but forget to enter a value, I get an error. I suspect many people will get annoyed by this. Of course, it all depends on what the majority of users usually do: set a default value or not. For a VARCHAR, this results in setting a default value of ''. Marc

Marc Delisle schrieb:
Hi, There is a problem with the behavior of this new dropdown. If I add a field of type INT and let this dropdown to its default value "User-defined" but forget to enter a value, I get an error. I suspect many people will get annoyed by this.
Of course, it all depends on what the majority of users usually do: set a default value or not.
For a VARCHAR, this results in setting a default value of ''.
yes, i also thought about this, possible we can automatically replace empty string with 0 for numeric field types, what do you think? -- Sebastian Mendel

Sebastian Mendel a écrit :
Marc Delisle schrieb:
Hi, There is a problem with the behavior of this new dropdown. If I add a field of type INT and let this dropdown to its default value "User-defined" but forget to enter a value, I get an error. I suspect many people will get annoyed by this.
Of course, it all depends on what the majority of users usually do: set a default value or not.
For a VARCHAR, this results in setting a default value of ''.
yes, i also thought about this, possible we can automatically replace empty string with 0 for numeric field types, what do you think?
Yes this is a possibility. There are other cases like DATE, DATETIME, TIMESTAMP.
participants (2)
-
Marc Delisle
-
Sebastian Mendel