From: Warren Young Date: March 11 2009 11:55am Subject: Re: how to test whether maximum number of data members allowed in a SSQL will be uncompilable with compiler limits? List-Archive: http://lists.mysql.com/plusplus/8455 Message-Id: <49B7A6CF.2070004@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Does this patch do what you want? Index: lib/ssqls.pl =================================================================== --- lib/ssqls.pl (revision 2469) +++ lib/ssqls.pl (working copy) @@ -90,6 +90,8 @@ # define MYSQLPP_SSQLS_CONDITIONAL_STATICS(...) __VA_ARGS__ #endif +#define MYSQLPP_SSQLS_MAX_MEMBERS $max_data_members + --- my @types = ("Date", "DateTime", "Time", "String", "std::string"); You could then say: if (MYSQLPP_SSQLS_MAX_MEMBERS >= 38) { // do something with the SSQLS } else { // despair } I'm not sure why you're asking about SSQLS. Your recent questions have all been about template queries. They also default to a 25-parameter limit. Maybe you want this patch instead: Index: lib/querydef.pl =================================================================== --- lib/querydef.pl (revision 2469) +++ lib/querydef.pl (working copy) @@ -51,6 +51,8 @@ #ifndef MYSQLPP_QUERYDEF_H #define MYSQLPP_QUERYDEF_H +#define MYSQLPP_TQUERY_MAX_PARAMETERS $max_parameters + --- ## Build mysql_query_define0 macro