List:MySQL++« Previous MessageNext Message »
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?
View as plain text  
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
Thread
how to test whether maximum number of data members allowed in aSSQL will be uncompilable with compiler limits?Alex Luya8 Mar
  • Re: how to test whether maximum number of data members allowedin a SSQL will be uncompilable with compiler limits?Warren Young11 Mar