Author: wyoung
Date: Tue May 18 03:54:43 2010
New Revision: 2641

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2641&view=rev
Log:
Changed "sdate" in examples/stock.h to "sDate" in order to test SSQLS's
newfound case insensitivity.  Deliberately leaving all other instances
of "sdate" alone -- particularly the one in resetdb -- because we're
*trying* to test insensitivity to case mismatches.

Modified:
    trunk/bmark.txt
    trunk/examples/ssqls4.cpp
    trunk/examples/stock.h
    trunk/examples/store_if.cpp

Modified: trunk/bmark.txt
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/bmark.txt?rev=2641&r1=2640&r2=2641&view=diff
==============================================================================
--- trunk/bmark.txt (original)
+++ trunk/bmark.txt Tue May 18 03:54:43 2010
@@ -157,7 +157,7 @@
 ================ END ssqls1 OUTPUT ================
 
 ---------------- BEGIN ssqls2 OUTPUT ----------------
-Query: INSERT INTO `stock` 
(`item`,`num`,`weight`,`price`,`sdate`,`description`) VALUES ('Hot 
Dogs',100,1.5,NULL,'1998-09-25',NULL)
+Query: INSERT INTO `stock` 
(`item`,`num`,`weight`,`price`,`sDate`,`description`) VALUES ('Hot 
Dogs',100,1.5,NULL,'1998-09-25',NULL)
 Query: select * from stock
 Records found: 5
 
@@ -171,7 +171,7 @@
 ================ END ssqls2 OUTPUT ================
 
 ---------------- BEGIN ssqls3 OUTPUT ----------------
-Query: UPDATE `stock` SET `item` = 'Nuerenberger Bratwurst',`num` = 
97,`weight` = 1.5,`price` = 8.7899999999999991,`sdate` = 
'2005-03-10',`description` = NULL WHERE `item` = 'Nürnberger Brats'
+Query: UPDATE `stock` SET `item` = 'Nuerenberger Bratwurst',`num` = 
97,`weight` = 1.5,`price` = 8.7899999999999991,`sDate` = 
'2005-03-10',`description` = NULL WHERE `item` = 'Nürnberger Brats'
 Query: select * from stock
 Records found: 5
 

Modified: trunk/examples/ssqls4.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/ssqls4.cpp?rev=2641&r1=2640&r2=2641&view=diff
==============================================================================
--- trunk/examples/ssqls4.cpp (original)
+++ trunk/examples/ssqls4.cpp Tue May 18 03:54:43 2010
@@ -5,7 +5,7 @@
        style.
 
  Copyright (c) 1998 by Kevin Atkinson, (c) 1999-2001 by MySQL AB, and
- (c) 2004-2009 by Educational Technology Resources, Inc.  Others may
+ (c) 2004-2010 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.
 
@@ -65,7 +65,7 @@
                cout.precision(3);
                for (it = res.begin(); it != res.end(); ++it) {
                        print_stock_row(it->item.c_str(), it->num, it->weight,
-                                       it->price, it->sdate);
+                                       it->price, it->sDate);
                }
 
                // Use set's find method to look up a stock item by item name.

Modified: trunk/examples/stock.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/stock.h?rev=2641&r1=2640&r2=2641&view=diff
==============================================================================
--- trunk/examples/stock.h (original)
+++ trunk/examples/stock.h Tue May 18 03:54:43 2010
@@ -2,7 +2,7 @@
  stock.h - Declares the stock SSQLS used by several of the examples.
 
  Copyright (c) 1998 by Kevin Atkinson, (c) 1999-2001 by MySQL AB, and
- (c) 2004-2009 by Educational Technology Resources, Inc.  Others may
+ (c) 2004-2010 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.
 
@@ -42,6 +42,6 @@
        mysqlpp::sql_bigint, num,
        mysqlpp::sql_double, weight,
        mysqlpp::sql_double_null, price,
-       mysqlpp::sql_date, sdate,
+       mysqlpp::sql_date, sDate,                       // SSQLS isn't 
case-sensitive!
        mysqlpp::sql_mediumtext_null, description)
 

Modified: trunk/examples/store_if.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/store_if.cpp?rev=2641&r1=2640&r2=2641&view=diff
==============================================================================
--- trunk/examples/store_if.cpp (original)
+++ trunk/examples/store_if.cpp Tue May 18 03:54:43 2010
@@ -4,7 +4,7 @@
        to be useful, only to show how you can do result set filtering that
        outstrips the power of SQL.
 
- Copyright (c) 2005-2009 by Educational Technology Resources, Inc.
+ Copyright (c) 2005-2010 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.
 
@@ -86,7 +86,7 @@
                std::vector<stock>::const_iterator it;
                for (it = results.begin(); it != results.end(); ++it) {
                        print_stock_row(it->item.c_str(), it->num, it->weight,
-                                       it->price, it->sdate);
+                                       it->price, it->sDate);
                }
        }
        catch (const mysqlpp::BadQuery& e) {


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

Reply via email to