List:Commits« Previous MessageNext Message »
From:Stewart Smith Date:October 9 2008 1:13pm
Subject:bzr commit into mysql-5.1 branch (stewart:2994)
View as plain text  
#At file:///C:/cygwin/home/stewart/mysql/win-ndbwin32/

 2994 Stewart Smith	2008-10-10
       on win32 table path can have \ instead of /. We were missing this logic here. Was causing failure of ndb.loaddata_autocom_ndb test (and possibly others)
modified:
  sql/ha_ndbcluster.cc

=== modified file 'sql/ha_ndbcluster.cc'
--- a/sql/ha_ndbcluster.cc	2008-10-08 05:48:19 +0000
+++ b/sql/ha_ndbcluster.cc	2008-10-09 16:42:40 +0000
@@ -7020,8 +7020,8 @@ int ha_ndbcluster::final_drop_index(TABL
 static const char *get_base_name(const char *ptr)
 {
   ptr+= strlen(ptr);
-  while (*(--ptr) != '/');
-  while (*(--ptr) != '/');
+  while (*(--ptr) != '/' && *ptr != '\\');
+  while (*(--ptr) != '/' && *ptr != '\\');
   return ptr+1;
 }
 

Thread
bzr commit into mysql-5.1 branch (stewart:2994) Stewart Smith9 Oct