$result=$conn->exec("SELECT name FROM person WHERE id = 2");
cmp_eq(PGRES_TUPLES_OK,$result->resultStatus);
open(PRINT,"| read IN; read IN; if [ \"\$IN\" = \"myName Edmund Mergl\" ]; then echo \"ok $cnt\"; else echo \"not ok $cnt\"; fi ")||die"can not fork: $|";
$result=PQexec($conn,"SELECT name FROM person WHERE id = 2");
cmp_eq(PGRES_TUPLES_OK,PQresultStatus($result));
open(PRINT,"| read IN; read IN; if [ \"\$IN\" = \"myName Edmund Mergl\" ]; then echo \"ok $cnt\"; else echo \"not ok $cnt\"; fi ")||die"can not fork: $|";