The list of indexes on a table now also shows the access method (ie btree)
This commit is contained in:
parent
7c4f1a4752
commit
50cb21b6f9
17 changed files with 198 additions and 26 deletions
|
|
@ -542,18 +542,18 @@ void QueryTab::markError(const Pgsql::ErrorDetails &details)
|
|||
if (details.state == "42703") {
|
||||
std::size_t pos = details.messagePrimary.find('"');
|
||||
if (pos != std::string::npos) {
|
||||
int pos2 = details.messagePrimary.find('"', pos+1);
|
||||
std::size_t pos2 = details.messagePrimary.find('"', pos+1);
|
||||
if (pos2 != std::string::npos) {
|
||||
length = pos2 - pos;
|
||||
length = static_cast<int>(pos2 - pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (details.state == "42P01") {
|
||||
std::size_t pos = details.messagePrimary.find('"');
|
||||
if (pos != std::string::npos) {
|
||||
int pos2 = details.messagePrimary.find('"', pos+1);
|
||||
std::size_t pos2 = details.messagePrimary.find('"', pos+1);
|
||||
if (pos2 != std::string::npos) {
|
||||
length = pos2 - pos;
|
||||
length = static_cast<int>(pos2 - pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -623,11 +623,11 @@ std::vector<QAction*> QueryTab::getToolbarActions()
|
|||
action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_S));
|
||||
connect(action, &QAction::triggered, this, &QueryTab::save);
|
||||
actions.push_back(action);
|
||||
// Save as
|
||||
action = new QAction(QIcon(":/icons/script_go.png"), tr("Save SQL as"), this);
|
||||
//action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_S));
|
||||
connect(action, &QAction::triggered, this, &QueryTab::saveAs);
|
||||
actions.push_back(action);
|
||||
// Save as (menu only)
|
||||
// action = new QAction(QIcon(":/icons/script_save.png"), tr("Save SQL as"), this);
|
||||
// //action->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_S));
|
||||
// connect(action, &QAction::triggered, this, &QueryTab::saveAs);
|
||||
// actions.push_back(action);
|
||||
// Save copy as
|
||||
// Copy
|
||||
// Copy as C-string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue