List:Commits« Previous MessageNext Message »
From:gni Date:February 27 2008 5:59am
Subject:bk commit into 5.1 tree (gni:1.2660) BUG#30552
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of gni.  When gni does a push these changes
will be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2008-02-27 13:59:03+08:00, gni@stripped +1 -0
  BUG#30552 ndbapi_scan.cpp example contains endless recrsion.

  storage/ndb/ndbapi-examples/ndbapi_scan/ndbapi_scan.cpp@stripped, 2008-02-27 13:59:00+08:00, gni@stripped +1 -2
    remove the useless recursive statement

diff -Nrup a/storage/ndb/ndbapi-examples/ndbapi_scan/ndbapi_scan.cpp b/storage/ndb/ndbapi-examples/ndbapi_scan/ndbapi_scan.cpp
--- a/storage/ndb/ndbapi-examples/ndbapi_scan/ndbapi_scan.cpp	2006-12-24 03:33:30 +08:00
+++ b/storage/ndb/ndbapi-examples/ndbapi_scan/ndbapi_scan.cpp	2008-02-27 13:59:00 +08:00
@@ -117,7 +117,7 @@ struct Car 
  */
 void drop_table(MYSQL &mysql)
 {
-  if (mysql_query(&mysql, "DROP TABLE GARAGE"))
+  if (mysql_query(&mysql, "DROP TABLE IF EXISTS GARAGE"))
     MYSQLERROR(mysql);
 }
 
@@ -144,7 +144,6 @@ void create_table(MYSQL &mysql) 
      * Recreate table *
      ******************/
     drop_table(mysql);
-    create_table(mysql);
   }
 }
 
Thread
bk commit into 5.1 tree (gni:1.2660) BUG#30552gni27 Feb