mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Fix Table::emptyInsertStmt for NOT NULL fields with default value
See issue #97.
This commit is contained in:
@@ -181,7 +181,7 @@ QString Table::emptyInsertStmt(int pk_value) const
|
||||
vals << QString::number(pk_value);
|
||||
else
|
||||
vals << "NULL";
|
||||
} else if(f->notnull()) {
|
||||
} else if(f->notnull() && f->defaultValue().length() == 0) {
|
||||
fields << f->name();
|
||||
|
||||
if(f->isInteger())
|
||||
|
||||
Reference in New Issue
Block a user