diff --git a/src/backends/postgresql/statement.cpp b/src/backends/postgresql/statement.cpp index 5995b45b7..319553db1 100644 --- a/src/backends/postgresql/statement.cpp +++ b/src/backends/postgresql/statement.cpp @@ -711,7 +711,7 @@ std::string postgresql_statement_backend::get_parameter_name(int index) const std::string postgresql_statement_backend::rewrite_for_procedure_call( std::string const & query) { - std::string newQuery("select "); + std::string newQuery("call "); newQuery += query; return newQuery; }