Author: wyoung
Date: Wed Mar 11 13:39:17 2009
New Revision: 2484

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2484&view=rev
Log:
querydef.pl and ssqls.pl now generate a #define constant containing the
value for the maximum number of parameters/data members you can use with
those mechanisms with the headers as generated.  More useful with
template queries than SSQLS, but did it to both just to be consistent.

Modified:
    trunk/lib/querydef.pl
    trunk/lib/ssqls.pl

Modified: trunk/lib/querydef.pl
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/querydef.pl?rev=2484&r1=2483&r2=2484&view=diff
==============================================================================
--- trunk/lib/querydef.pl (original)
+++ trunk/lib/querydef.pl Wed Mar 11 13:39:17 2009
@@ -6,7 +6,7 @@
 #      number limits the number of parameters a MySQL++ template query can
 #      accept.  This value can be changed from its default, below.
 #
-# Copyright (c) 2006-2008 by Educational Technology Resources, Inc.
+# Copyright (c) 2006-2009 by Educational Technology Resources, Inc.
 # Others may also hold copyrights on code in this file.  See the CREDITS
 # file in the top directory of the distribution for details.
 #
@@ -51,6 +51,8 @@
 #ifndef MYSQLPP_QUERYDEF_H
 #define MYSQLPP_QUERYDEF_H
 
+#define MYSQLPP_TQUERY_MAX_PARAMETERS $max_parameters
+
 ---
 
 ## Build mysql_query_define0 macro

Modified: trunk/lib/ssqls.pl
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/ssqls.pl?rev=2484&r1=2483&r2=2484&view=diff
==============================================================================
--- trunk/lib/ssqls.pl (original)
+++ trunk/lib/ssqls.pl Wed Mar 11 13:39:17 2009
@@ -5,7 +5,7 @@
 #      functions and classes, varying only in trivial ways.
 #
 # Copyright (c) 1998 by Kevin Atkinson, (c) 1999-2001 by MySQL AB, and
-# (c) 2004-2008 by Educational Technology Resources, Inc.  Others may
+# (c) 2004-2009 by Educational Technology Resources, Inc.  Others may
 # also hold copyrights on code in this file.  See the CREDITS.txt file
 # in the top directory of the distribution for details.
 #
@@ -89,6 +89,8 @@
 #else
 #      define MYSQLPP_SSQLS_CONDITIONAL_STATICS(...) __VA_ARGS__
 #endif
+
+#define MYSQLPP_SSQLS_MAX_MEMBERS $max_data_members
 
 ---
 


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to