mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
create table dlg: add error messages for adding a field
This commit is contained in:
@@ -177,7 +177,14 @@
|
||||
model.add(fieldName);
|
||||
l.setSelectedIndex(model.indexOf(fieldName));
|
||||
}
|
||||
|
||||
else if ( fieldName == null || fieldName.trim().length() == 0 )
|
||||
{
|
||||
d.popupMessage("Create Table", "Please enter a field name to add.");
|
||||
}
|
||||
else if ( model.contains(fieldName.trim()) )
|
||||
{
|
||||
d.popupMessage("Create Table", "Field name + " fieldName.trim() + " already exists in this table.");
|
||||
}
|
||||
}
|
||||
else if ("Remove".equals(who) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user