Author: wyoung
Date: Fri Feb 8 01:33:38 2008
New Revision: 2170
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2170&view=rev
Log:
- Removed sql_create_c_order_* SSQLS creation macro. New way of
populating SSQLSes removes the dependence of SSQLS field order
on result set field order, so this macro is now pointless.
- Simplified the definition of sql_create_complete_* to remove the
now-useless field order parameters.
- That done, there is now no difference between sql_create_complete_N
and sql_create_c_names_N, so removed sql_create_c_order_* macros, too.
This leaves only sql_create_N and sql_create_complete_N as SSQLS
creation macros, with the latter only allowing C++ side names to differ
from the SQL side names.
Modified:
trunk/lib/ssqls.pl
Modified: trunk/lib/ssqls.pl
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/ssqls.pl?rev=2170&r1=2169&r2=2170&view=diff
==============================================================================
--- trunk/lib/ssqls.pl (original)
+++ trunk/lib/ssqls.pl Fri Feb 8 01:33:38 2008
@@ -283,10 +283,6 @@
my $parmc = "";
my $parmC = "";
my $parm_complete = "";
- my $parm_names = "";
- my $parm_names2c = "";
- my $parm_order = "";
- my $parm_order2c = "";
my $parm_simple = "";
my $parm_simple2c = "";
my $parm_simple2c_b = "";
@@ -296,23 +292,15 @@
my $value_list_cus = "";
foreach my $j (1 .. $i) {
- $parm_complete .= "T$j, I$j, N$j, O$j";
+ $parm_complete .= "T$j, I$j, N$j";
$parm_complete .= ", " unless $j == $i;
- $parm_order .= "T$j, I$j, O$j";
- $parm_order .= ", " unless $j == $i;
- $parm_order2c .= "T$j, I$j, #I$j, O$j";
- $parm_order2c .= ", " unless $j == $i;
- $parm_names .= "T$j, I$j, N$j";
- $parm_names .= ", " unless $j == $i;
- $parm_names2c .= "T$j, I$j, N$j, ". ($j-1);
- $parm_names2c .= ", " unless $j == $i;
$parm_simple .= "T$j, I$j";
$parm_simple .= ", " unless $j == $i;
- $parm_simple2c .= "T$j, I$j, #I$j, ". ($j-1);
+ $parm_simple2c .= "T$j, I$j, #I$j";
$parm_simple2c .= ", " unless $j == $i;
$parm_simple_b .= "T$j, I$j";
$parm_simple_b .= ", " unless $j == $i;
- $parm_simple2c_b .= "T$j, I$j, ". ($j-1);
+ $parm_simple2c_b .= "T$j, I$j";
$parm_simple2c_b .= ", " unless $j == $i;
$defs .= " T$j I$j;";
@@ -899,12 +887,6 @@
#define sql_create_$i(NAME, CMP, CONTR, $parm_simple) \\
sql_create_complete_$i(NAME, CMP, CONTR, $parm_simple2c) \\
-#define sql_create_c_order_$i(NAME, CMP, CONTR, $parm_order) \\
- sql_create_complete_$i(NAME, CMP, CONTR, $parm_order2c)
-
-#define sql_create_c_names_$i(NAME, CMP, CONTR, $parm_names) \\
- sql_create_complete_$i(NAME, CMP, CONTR, $parm_names2c)
-
// ---------------------------------------------------
// End Create $i
// ---------------------------------------------------
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits