Author: wyoung
Date: Sat Oct 27 06:43:26 2007
New Revision: 1795

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1795&view=rev
Log:
Removed executable properties for .cpp files

Modified:
    trunk/examples/custom5.cpp
    trunk/examples/deadlock.cpp   (contents, props changed)
    trunk/examples/for_each.cpp   (props changed)
    trunk/examples/multiquery.cpp
    trunk/examples/printdata.cpp
    trunk/examples/resetdb.cpp
    trunk/examples/tquery1.cpp
    trunk/examples/tquery2.cpp
    trunk/examples/xaction.cpp

Modified: trunk/examples/custom5.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/custom5.cpp?rev=1795&r1=1794&r2=1795&view=diff
==============================================================================
--- trunk/examples/custom5.cpp (original)
+++ trunk/examples/custom5.cpp Sat Oct 27 06:43:26 2007
@@ -56,7 +56,6 @@
                if (res.size() > 0) {
                        // Build a select query using the data from the first 
row
                        // returned by our previous query.
-                       query.reset();
                        query << "select * from stock where " <<
                                        res[0].equal_list(" and ", 
stock_weight, stock_price);
 

Modified: trunk/examples/deadlock.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/deadlock.cpp?rev=1795&r1=1794&r2=1795&view=diff
==============================================================================
--- trunk/examples/deadlock.cpp (original)
+++ trunk/examples/deadlock.cpp Sat Oct 27 06:43:26 2007
@@ -85,7 +85,6 @@
                        int lock = run_mode + (run_mode == 1 ? i : -i);
                        cout << "Trying lock " << lock << "..." << endl;
 
-                       query.reset();
                        query << "select * from deadlock_test" << lock << 
                                        " where x = " << lock << " for update";
                        query.store();

Propchange: trunk/examples/deadlock.cpp
------------------------------------------------------------------------------
--- svn:executable (original)
+++ svn:executable (removed)
@@ -1,1 +1,0 @@
-*

Propchange: trunk/examples/for_each.cpp
------------------------------------------------------------------------------
--- svn:executable (original)
+++ svn:executable (removed)
@@ -1,1 +1,0 @@
-*

Modified: trunk/examples/multiquery.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/multiquery.cpp?rev=1795&r1=1794&r2=1795&view=diff
==============================================================================
--- trunk/examples/multiquery.cpp (original)
+++ trunk/examples/multiquery.cpp Sat Oct 27 06:43:26 2007
@@ -177,7 +177,6 @@
 #if MYSQL_VERSION_ID >= 50000
                // If it's MySQL v5.0 or higher, also test stored procedures, 
which
                // return their results the same way multi-queries do.
-               query.reset();
                query << "DROP PROCEDURE IF EXISTS get_stock;" << endl <<
                                "CREATE PROCEDURE get_stock" << endl <<
                                "( i_item varchar(20) )" << endl <<
@@ -192,7 +191,6 @@
                print_multiple_results(query);
 
                // Call the stored procedure and display its results.
-               query.reset();
                query << "CALL get_stock('relish')";
                cout << "Query: " << query.preview() << endl;
                print_multiple_results(query);

Modified: trunk/examples/printdata.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/printdata.cpp?rev=1795&r1=1794&r2=1795&view=diff
==============================================================================
--- trunk/examples/printdata.cpp (original)
+++ trunk/examples/printdata.cpp Sat Oct 27 06:43:26 2007
@@ -104,7 +104,7 @@
 print_stock_table(mysqlpp::Query& query)
 {
        // Reset query object to its pristine state in case it's been used
-       // before by our caller.
+       // before by our caller for template queries.
        query.reset();
 
        // Build the query itself, and show it to the user

Modified: trunk/examples/resetdb.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/resetdb.cpp?rev=1795&r1=1794&r2=1795&view=diff
==============================================================================
--- trunk/examples/resetdb.cpp (original)
+++ trunk/examples/resetdb.cpp Sat Oct 27 06:43:26 2007
@@ -134,7 +134,6 @@
                // Set up the template query to insert the data.  The parse()
                // call tells the query object that this is a template and
                // not a literal query string.
-               query.reset();
                query << "insert into %5:table values (%0q, %1q, %2, %3, %4q)";
                query.parse();
 
@@ -155,7 +154,7 @@
                // Now create empty images table, for testing BLOB and auto-
                // increment column features.
                cout << "Creating empty images table..." << endl;
-               query.reset();
+               query.reset();          // forget template query info
                query << 
                                "CREATE TABLE images (" <<
                                "  id INT UNSIGNED NOT NULL AUTO_INCREMENT, " <<
@@ -166,13 +165,9 @@
 
                // Create the tables used by examples/deadlock.cpp
                cout << "Creating deadlock testing tables..." << endl;
-               query.reset();
                query.execute("CREATE TABLE deadlock_test1 (x INT) 
ENGINE=innodb");
-               query.reset();
                query.execute("CREATE TABLE deadlock_test2 (x INT) 
ENGINE=innodb");
-               query.reset();
                query.execute("INSERT INTO deadlock_test1 VALUES (1);");
-               query.reset();
                query.execute("INSERT INTO deadlock_test2 VALUES (2);");
 
                // Report success

Modified: trunk/examples/tquery1.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/tquery1.cpp?rev=1795&r1=1794&r2=1795&view=diff
==============================================================================
--- trunk/examples/tquery1.cpp (original)
+++ trunk/examples/tquery1.cpp Sat Oct 27 06:43:26 2007
@@ -61,7 +61,7 @@
 
                // Replace the proper German name with a 7-bit ASCII
                // approximation using a different template query.
-               query.reset();
+               query.reset();          // forget previous template query data
                query << "update stock set item = %0q where item = %1q";
                query.parse();
                mysqlpp::ResNSel res2 = query.execute("Nuerenberger Bratwurst",

Modified: trunk/examples/tquery2.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/tquery2.cpp?rev=1795&r1=1794&r2=1795&view=diff
==============================================================================
--- trunk/examples/tquery2.cpp (original)
+++ trunk/examples/tquery2.cpp Sat Oct 27 06:43:26 2007
@@ -66,7 +66,7 @@
 
                // Replace the proper German name with a 7-bit ASCII
                // approximation using a different template query.
-               query.reset();
+               query.reset();          // forget previous template query info
                query << "update stock set item = %0q where item = %1q";
                query.parse();
                sqp.clear();

Modified: trunk/examples/xaction.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/xaction.cpp?rev=1795&r1=1794&r2=1795&view=diff
==============================================================================
--- trunk/examples/xaction.cpp (original)
+++ trunk/examples/xaction.cpp Sat Oct 27 06:43:26 2007
@@ -58,12 +58,10 @@
                        stock row1("Sauerkraut", 42, 1.2, 0.75, "2006-03-06");
                        query.insert(row1);
                        query.execute();
-                       query.reset();
 
                        stock row2("Bratwurst", 24, 3.0, 4.99, "2006-03-06");
                        query.insert(row2);
                        query.execute();
-                       query.reset();
 
                        cout << "\nRows are inserted, but not committed." << 
endl;
                        cout << "Verify this with another program (e.g. 
simple1), "
@@ -83,7 +81,6 @@
                        stock row("Catsup", 3, 3.9, 2.99, "2006-03-06");
                        query.insert(row);
                        query.execute();
-                       query.reset();
                }
                cout << "\nNo, yuck! We don't like catsup. Rolling it back:" <<
                                endl;


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

Reply via email to