I want to make sure queries returned aren't empty. Tried this:
$conn = Pg::connectdb("dbname=$db");
$res = $conn->exec("$q");
$result_status = $res->resultStatus;
($result_status != PGRES_EMPTY_QUERY) ? print "query not empty\n" :
print "query empty\n";
But it returns '2' (not sure which constant it is, but it's not
PGRES_EMPTY_QUERY) on empty queries.
What's the right use of this property?
--
Randy Perry
sysTame
Mac Consulting/Sales