diff --git a/pgsql.cpp b/pgsql.cpp index 8bcf4bb..d0e8e97 100644 --- a/pgsql.cpp +++ b/pgsql.cpp @@ -206,9 +206,7 @@ PGSQL *PGSQL::Get(const Variant& conn_id) { return nullptr; } - PGSQL *pgsql = conn_id.toResource().getTyped - (!RuntimeOption::ThrowBadTypeExceptions, - !RuntimeOption::ThrowBadTypeExceptions); + PGSQL *pgsql = conn_id.toResource().getTyped(true, true); return pgsql; } @@ -304,9 +302,7 @@ PGSQLResult *PGSQLResult::Get(const Variant& result) { return nullptr; } - auto *res = result.toResource().getTyped - (!RuntimeOption::ThrowBadTypeExceptions, - !RuntimeOption::ThrowBadTypeExceptions); + auto *res = result.toResource().getTyped(true, true); return res; }