mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Allow space characters in table and index names, disallow ` chars
Spaces in table, index and field names are actually allowed by SQLite, so no need to check for them. However, "`" characters cause problems when appearing in SQL statements so disallow them instead.
This commit is contained in:
@@ -149,9 +149,8 @@ void EditTableDialog::updateSqlText()
|
||||
void EditTableDialog::checkInput()
|
||||
{
|
||||
QString normTableName = ui->editTableName->text().trimmed();
|
||||
ui->editTableName->setText(normTableName);
|
||||
bool valid = true;
|
||||
if(normTableName.isEmpty() || normTableName.contains(" "))
|
||||
if(normTableName.isEmpty() || normTableName.contains("`"))
|
||||
valid = false;
|
||||
if(ui->treeWidget->topLevelItemCount() == 0)
|
||||
valid = false;
|
||||
|
||||
Reference in New Issue
Block a user