dbTalk Databases Forums  

SQLQuery

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


Discuss SQLQuery in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ovidiu Bivolaru
 
Posts: n/a

Default SQLQuery - 02-19-2006 , 06:58 AM






Hi,

Is there any way to avoid the 12 parameters limit for SQLQuery() when
using mysql++-1.7.x ? My query should have 14 parameters.
The following code will certainly fail:
Query insert_values;
insert_values << "INSERT INTO table VALUES (%0q, ... 13%q)";
insert_values.parse();
insert_values.store(p0,...p13);

Regards,
Ovidiu


--
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
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: SQLQuery - 02-20-2006 , 01:36 PM






Ovidiu Bivolaru wrote:
Quote:
Is there any way to avoid the 12 parameters limit for SQLQuery() when
using mysql++-1.7.x ? My query should have 14 parameters.
I would first suggest moving to either Query's stream syntax, or to
SSQLS. Either will let you have unlimited fields.

If you don't wish to do either, you can just add more template query
methods to SQLQuery (or is it Query...I forget). This will make your
library incompatible with everyone else's copy, but if you are shipping
a copy of the library with your program anyway, that shouldn't be a
problem. I would suggest renaming the library file to avoid conflicts.

I've added an item for this to the Wishlist.

--
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.