PgType now inherits from PgNamespaceObject and PgOwnedObject
This commit is contained in:
parent
742fd0a4d3
commit
44358d198a
10 changed files with 37 additions and 54 deletions
|
|
@ -24,7 +24,10 @@ Pgsql::Params QueryParamListController::params() const
|
|||
Pgsql::Params params;
|
||||
auto types = m_openDatabase->catalog()->types();
|
||||
for (auto e : m_paramList.GetParams()) {
|
||||
Oid oid = types->getByName(e.type)->oid;
|
||||
// some types have two names that are in seperate fields
|
||||
// this function only checks one field currently :(
|
||||
// for example integer vs int4, bigint vs int8
|
||||
Oid oid = types->getByName(e.type)->oid();
|
||||
params.add(e.value, oid);
|
||||
}
|
||||
return params;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ void SqlSyntaxHighlighter::setTypes(const PgTypeContainer& types)
|
|||
{
|
||||
m_typeNames.clear();
|
||||
for (auto&& e : types) {
|
||||
m_typeNames.insert(e.name);
|
||||
m_typeNames.insert(e.objectName());
|
||||
}
|
||||
rehighlight();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue