dbTalk Databases Forums  

Re: field_num("pippo") = ????????

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Re: field_num("pippo") = ???????? in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Warren Young
 
Posts: n/a

Default Re: field_num("pippo") = ???????? - 06-28-2005 , 06:59 PM






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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.