[Cppcms-users] cppdb::statement.affected() usage?
Brought to you by:
artyom-beilis
From: CN <cn...@gr...> - 2011-02-15 14:12:41
|
Hello! The following SELECT gets one tuple: cppdb::statement st=session << "SELECT 1 FROM t1"; cppdb::result r=st.row(); Now, r.empty() returns false, which is correct, but st.affected() returns 0. cppdb::statement.affected() is supposed to return the selected number of tuples, which is 1 in this case, not 0. Do I misunderstand its usage? Thank you in advance! Regards, CN |