i've called sql query (ommited error checking post)
pgresult *result = pqexec(self.connection, "select * \"getnewpaths\"()"); const int numrows = pqntuples(result); int row = 0; (int = 0; < numrows; i++) { char *path = pqgetvalue(result, row, 0);
as hit pqgetvalue call exception. if run same sql command inside of psql i'd expect see. getnewpaths() function has return type of: table(fullpath varchar, uuid uuid)
since i'm asking first column of first row, i'm not sure why i'm getting error.
my mac postgresql server running 9.2.1, , client running 9.1.5
just figured out. macro calling pqclear(result) before using results. removing fixed problem.
Comments
Post a Comment