--TEST-- PDO::exec() returns 0 when the statement is a SELECT. --EXTENSIONS-- pdo_pgsql --SKIPIF-- --FILE-- exec('SELECT * from generate_series(1, 42);'); var_dump($res); echo "Done\n"; ?> --EXPECT-- int(0) Done