Re: [GENERAL] check the execution status of stored procedure

2010-01-08 Thread Tom Lane
Yan Cheng Cheok writes: > Currently, I try to call a stored procedure with void returned type. > PGresult *res = PQexec(this->getConnection(), "SELECT * FROM > create_tables()"); > if (PQresultStatus(res) != PGRES_COMMAND_OK) > { > PQclear(res); > return false; > }

[GENERAL] check the execution status of stored procedure

2010-01-07 Thread Yan Cheng Cheok
Currently, I try to call a stored procedure with void returned type. PGresult *res = PQexec(this->getConnection(), "SELECT * FROM create_tables()"); if (PQresultStatus(res) != PGRES_COMMAND_OK) { PQclear(res); return false; } Since the returned type of stored proc