Author: wyoung
Date: Fri Feb 15 08:02:40 2008
New Revision: 2200

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2200&view=rev
Log:
Renamed SSQLS::_table to table_ to comply with the Standard, and made it
private, since we've always had table() to give us access to this.

Modified:
    trunk/lib/query.h
    trunk/lib/ssqls.pl

Modified: trunk/lib/query.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/query.h?rev=2200&r1=2199&r2=2200&view=diff
==============================================================================
--- trunk/lib/query.h (original)
+++ trunk/lib/query.h Fri Feb 15 08:02:40 2008
@@ -568,7 +568,7 @@
        Function for_each(const SSQLS& ssqls, Function fn)
        {       
                std::string query("select * from ");
-               query += ssqls._table;
+               query += ssqls.table();
                mysqlpp::UseQueryResult res = use(query);
                if (res) {
                        mysqlpp::NoExceptions ne(res);
@@ -630,7 +630,7 @@
        Function store_if(Sequence& con, const SSQLS& ssqls, Function fn)
        {       
                std::string query("select * from ");
-               query += ssqls._table;
+               query += ssqls.table();
                mysqlpp::UseQueryResult res = use(query);
                if (res) {
                        mysqlpp::NoExceptions ne(res);

Modified: trunk/lib/ssqls.pl
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/ssqls.pl?rev=2200&r1=2199&r2=2200&view=diff
==============================================================================
--- trunk/lib/ssqls.pl (original)
+++ trunk/lib/ssqls.pl Fri Feb 15 08:02:40 2008
@@ -481,8 +481,7 @@
     sql_compare_define_##CMP(NAME, $parmC)
     sql_construct_define_##CONTR(NAME, $parmC)
     static const char* names[];
-    static const char* _table;
-    static const char*& table() { return _table; }
+    static const char*& table() { return table_; }
 
     NAME##_value_list<mysqlpp::quote_type0> value_list() const {
       return value_list(",", mysqlpp::quote);}
@@ -651,12 +650,15 @@
     template <class Manip>
     NAME##_cus_equal_list<Manip> equal_list(const char *d, const char *c, 
Manip m, 
                                                mysqlpp::sql_cmp_type sc) const;
+
+  private:
+    static const char* table_;
   }; 
   MYSQLPP_SSQLS_CONDITIONAL_STATICS(
          const char *NAME::names[] = { 
                 $names
          }; 
-         const char *NAME::_table = #NAME ;
+         const char *NAME::table_ = #NAME ;
   )
 
   template <class Manip>


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

Reply via email to