[Libpqxx-general] Tablewriter: entering specified fields only

Jeroen Vermeulen jtv at xs4all.nl
Wed May 27 15:17:02 UTC 2009


Robert Backhaus-pqxx wrote:

> Thank you. I have implemented it pretty much as per Matthew's example
> (thanks, your pseudo code was in fact very good code!) and it works well.
> As this is a reasonably common usage of the library, might a test exercising
> it be a good idea? I did check the tests, but the only one (test005.cxx)
> that uses these arguments didn't (then) make a lot of sense to me
> (std::string column="data"; tablewriter W(....,&column, &column+1); )
> It makes some sense to me now, but still looks a little weird! It also
> refers to the only column in the created table, and used a string, so it
> didn't do much to remove my confusion. ( I did also try std::string
> columnfirst "name"; std::string columnlast "othername"; tablewriter
> W(....,columnfirst, columnlast);, and various other things - I was trying!)

I've filed this as bug #185:

     http://pqxx.org/development/libpqxx/ticket/185

Jeroen


More information about the Libpqxx-general mailing list