Thread

  1. Getting number of tuples affected

    Michael Richards <miker@scifair.acadiau.ca> — 1999-06-30T04:57:55Z

    I was looking for a function to return the number of tuples an update
    returned, but couldn't find anything for libpq++. Any ideas?
    
    I also noticed a bug in the docs worth mentioning...
    http://postgresql.nextpath.com/doxlist.html
    
            PgDatabase data;
            data.exec("create table foo (a int4, b char16, d float8)");
            data.exec("copy foo from stdin");
            data.putline("3\etHello World\et4.5\en");
            data.putline("4\etGoodbye World\et7.11\en");
            &...
            data.putline(".\en");
            data.endcopy();
    
    There is no PgDatabase::exec
    
    
    thanks
    -Michael