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
|