Revision 0d155b40
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
src/schema.cpp | ||
---|---|---|
}
|
||
|
||
bool Schema::containsTable(QString tblname) {
|
||
if (this->tables.size() !=
|
||
this->database->getDatabase().tables().size()) {
|
||
if (this->tables.size() != this->getTableNames().size()) {
|
||
this->setTables(this->getTableSchemas());
|
||
}
|
||
return this->database->getDatabase().tables().contains(tblname);
|
||
... | ... | |
}
|
||
|
||
|
||
QHash<QString, QSharedPointer<TableSchema> > Schema::getTables() const {
|
||
QHash<QString, QSharedPointer<TableSchema> > Schema::getTables() {
|
||
if (this->tables.size() != this->getTableNames().size()) {
|
||
this->setTables(this->getTableSchemas());
|
||
}
|
||
return this->tables;
|
||
}
|
||
|
Auch abrufbar als: Unified diff
bugfix in schema and ticket #580