Some fixes and framework docs

This commit is contained in:
Yorhel 2025-02-23 14:05:43 +01:00
parent b2d676b1ed
commit 18e642290d
7 changed files with 313 additions and 17 deletions

View file

@ -428,7 +428,7 @@ subtest 'Tracing', sub {
is_deeply $st->param_types, [];
is_deeply $st->param_values, [];
is_deeply $st->columns, [];
ok !defined $st->nrows;
is $st->nrows, 0;
is $st->query, 'SET client_encoding=UTF8';
ok $st->exec_time > 0 && $st->exec_time < 1;
ok !defined $st->prepare_time;

View file

@ -40,6 +40,8 @@ sub f($type, $p_in) {
ok !eval { $conn->q("SELECT \$1::$type", $p_in)->val; 1 }, "$test fail";
}
ok !defined $conn->q('SELECT pg_sleep(0)')->val; # void
v bool => true, undef, 1, 't';
v bool => false, undef, 0, 'f';