mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Problems with WITHOUT ROWID tables
Quoted values in DELETE FROM and UPDATE SET take into account that value could have a single quote and they are now doubled. Detect tables without rowid in order to make invisible the "Show rowid column" See issue #1332
This commit is contained in:
@@ -595,8 +595,9 @@ void MainWindow::populateTable()
|
||||
if(db.getObjectByName(currentlyBrowsedTableName())->type() == sqlb::Object::Table)
|
||||
{
|
||||
// Table
|
||||
sqlb::TablePtr table = db.getObjectByName(currentlyBrowsedTableName()).dynamicCast<sqlb::Table>();
|
||||
ui->actionUnlockViewEditing->setVisible(false);
|
||||
ui->actionShowRowidColumn->setVisible(true);
|
||||
ui->actionShowRowidColumn->setVisible(!table->isWithoutRowidTable());
|
||||
} else {
|
||||
// View
|
||||
ui->actionUnlockViewEditing->setVisible(true);
|
||||
|
||||
Reference in New Issue
Block a user