Seperated the Param data from the model.

This makes saving and loading the parameter data easier to do without cluttering up the model class.
This commit is contained in:
eelke 2017-12-09 15:46:33 +01:00
parent 3bf1ef4fe0
commit 0cbd0d16a1
3 changed files with 29 additions and 15 deletions

View file

@ -23,7 +23,7 @@ Pgsql::Params QueryParamListController::params() const
{
Pgsql::Params params;
auto types = m_openDatabase->catalogue()->types();
for (auto e : m_paramList) {
for (auto e : m_paramList.GetParams()) {
Oid oid = types->getByName(e.type).oid;
params.add(e.value, oid);
}