Generate COMMENT IS statements for columns
This commit is contained in:
parent
5777a9c834
commit
45795333f2
3 changed files with 16 additions and 3 deletions
|
|
@ -73,11 +73,16 @@ void ColumnPage::tableView_selectionChanged(const QItemSelection &/*selected*/,
|
|||
drops += ";";
|
||||
addsql += ";";
|
||||
m_definitionView->setPlainText(drops % "\n\n" % addsql);
|
||||
completeSql += drops % "\n\n" % addsql;
|
||||
completeSql += drops % "\n\n" % addsql % "\n\n";
|
||||
}
|
||||
else {
|
||||
m_definitionView->setPlainText("");
|
||||
for (auto r : rijen) {
|
||||
auto && col = m_columnModel->column(r);
|
||||
auto cs = col.commentStatement(*m_catalog, m_Class.value());
|
||||
if (!cs.isEmpty()) {
|
||||
completeSql += cs % "\n";
|
||||
}
|
||||
}
|
||||
|
||||
completeSql += "\n-- SQL to correct just the defaults\n";
|
||||
for (auto r : rijen) {
|
||||
auto && col = m_columnModel->column(r);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue