Re: [Cppcms-users] cppdb::statement.affected() usage?
Brought to you by:
artyom-beilis
From: CN <cn...@gr...> - 2011-02-15 16:12:41
|
Thank you a lot for the clarification! > Yes, number of affected rows is number of rows affected by > statements like DELETE or UPDATE, the behavior of affected() > when using queries (like SELECT) is undefined and may cause > exceptions. It will save users much time if this behavior is documented. Also, it will be handy if the number of selected rows (returned by libpq's PQntuples()) is implemented in either cppdb::statement or cppdb::result. Without this feature, it seems that iterating cppdb::result (by calling next()) is the only available way to know the number of selected rows. Wrong? Regards, CN |