Created
August 16, 2010 17:36
-
-
Save leto/527377 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
t/library/pg.t .. | |
1..43 | |
ok 1 - load_bytecode | |
ok 2 - load_bytecode Pg | |
ok 3 - Pg class exists | |
ok 4 - con isa Pg;Conn | |
ok 5 - con is true after connect | |
ok 6 - con.status() == CONNECTION_OK | |
ok 7 - status(PGconn) == CONNECTION_OK | |
ok 8 - exec BEGIN called | |
ok 9 - res isa Pg;Result | |
ok 10 - res.resultStatus() == PGRES_COMMAND_OK | |
ok 11 - notice receiver called | |
ok 12 - notice callback got a struct | |
not ok 13 - notice result is still ok | |
ok 14 - table created PGRES_COMMAND_OK | |
ok 15 - insert row PGRES_COMMAND_OK | |
ok 16 - select * PGRES_TUPLES_OK | |
ok 17 - res.ntuples == 1 | |
ok 18 - res.nfields == 3 | |
ok 19 - res.fname(1) == "foo" | |
ok 20 - res.fname(1) == "bar" | |
ok 21 - res.fnumber("id") == 0 | |
ok 22 - res.fnumber("bar") == 2 | |
ok 23 - res.fnumber("no_such_col_name") == -1 | |
ok 24 - getvalue(0, 1) == "a" | |
ok 25 - getvalue(0, 2) == "b" | |
ok 26 - insert w execParams PGRES_COMMAND_OK | |
ok 27 - res.ntuples == 2 | |
ok 28 - getvalue(1, 1) == "c" | |
ok 29 - getvalue(1, 2) == "d" | |
ok 30 - prepare PGRES_COMMAND_OK | |
ok 31 - execPrepared PGRES_COMMAND_OK | |
ok 32 - res.ntuples == 3 | |
ok 33 - execPrepared PGRES_COMMAND_OK | |
ok 34 - res.ntuples == 4 | |
ok 35 - insert row PGRES_COMMAND_OK | |
ok 36 - res.ntuples == 5 | |
ok 37 - getvalue(4, 1) == "i" | |
ok 38 - getvalue(4, 2) == "" | |
ok 39 - getisnull(4, 1) == 0 | |
ok 40 - getisnull(4, 2) == 1 | |
ok 41 - ABORT succeeded | |
ok 42 - con.finish() | |
ok 43 - con is false after finish | |
Failed 1/43 subtests | |
Test Summary Report | |
------------------- | |
t/library/pg.t (Wstat: 0 Tests: 43 Failed: 1) | |
Failed test: 13 | |
Files=1, Tests=43, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.03 cusr 0.01 csys = 0.06 CPU) | |
Result: FAIL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment