Skip to content

Commit

Permalink
Remove usage of old runtime option
Browse files Browse the repository at this point in the history
  • Loading branch information
Aatch committed Jul 9, 2014
1 parent 485be77 commit a908d60
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pgsql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ PGSQL *PGSQL::Get(const Variant& conn_id) {
return nullptr;
}

PGSQL *pgsql = conn_id.toResource().getTyped<PGSQL>
(!RuntimeOption::ThrowBadTypeExceptions,
!RuntimeOption::ThrowBadTypeExceptions);
PGSQL *pgsql = conn_id.toResource().getTyped<PGSQL>(true, true);
return pgsql;
}

Expand Down Expand Up @@ -304,9 +302,7 @@ PGSQLResult *PGSQLResult::Get(const Variant& result) {
return nullptr;
}

auto *res = result.toResource().getTyped<PGSQLResult>
(!RuntimeOption::ThrowBadTypeExceptions,
!RuntimeOption::ThrowBadTypeExceptions);
auto *res = result.toResource().getTyped<PGSQLResult>(true, true);
return res;
}

Expand Down

0 comments on commit a908d60

Please sign in to comment.