Author: wyoung
Date: Tue Jul 17 16:54:35 2007
New Revision: 1705

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1705&view=rev
Log:
Minor Query::execute() -> exec() optimization in resetdb

Modified:
    trunk/examples/resetdb.cpp

Modified: trunk/examples/resetdb.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/resetdb.cpp?rev=1705&r1=1704&r2=1705&view=diff
==============================================================================
--- trunk/examples/resetdb.cpp (original)
+++ trunk/examples/resetdb.cpp Tue Jul 17 16:54:35 2007
@@ -5,7 +5,7 @@
        the examples modify the table in this database.
 
  Copyright (c) 1998 by Kevin Atkinson, (c) 1999, 2000 and 2001 by
- MySQL AB, and (c) 2004, 2005 by Educational Technology Resources, Inc.
+ MySQL AB, and (c) 2004-2007 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.
 
@@ -89,8 +89,8 @@
                        // Toss old table, if it exists.  If it doesn't, we 
don't
                        // really care, as it'll get created next.
                        cout << "Dropping existing sample data tables..." << 
endl;
-                       query.execute("drop table stock");
-                       query.execute("drop table images");
+                       query.exec("drop table stock");
+                       query.exec("drop table images");
                }
                else {
                        // Database doesn't exist yet, so create and select it.


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

Reply via email to