Paoletti Vincenzo wrote:
Quote:
First,the field "pippo" doesn't exist,
the value of result.field_num("pippo") is == result.columns() and the sys doesn't throw exception |
I can make field_num throw a BadFieldName exception in this case.
But field_num() is mostly an internal-use function, so it should never
fail. Perhaps there is a better way to get the information you want
from MySQL++ that is safer. Is Row::lookup_by_name() suitable, for
instance?
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw