diff options
author | unknown <reggie@mdk10.(none)> | 2005-05-19 16:02:14 -0500 |
---|---|---|
committer | unknown <reggie@mdk10.(none)> | 2005-05-19 16:02:14 -0500 |
commit | 1da5382a9fa37ffd9ebdf30b74b0a515af879a64 (patch) | |
tree | f73ffd83cb856936fa46f2db58d48470f0ee1cf2 /sql/ha_myisammrg.cc | |
parent | f4a584f5013373f3c939df7cd7ef7ab444b18168 (diff) | |
download | mariadb-git-1da5382a9fa37ffd9ebdf30b74b0a515af879a64.tar.gz |
BUG# 10687 - MERGE engine fails under Windows
This patch was submitted by Ingo and it appears to work correctly.
sql/ha_myisammrg.cc:
use FN_LIBCHAR instead of / so buff works correctly on Windows
strings/my_vsnprintf.c:
add support for %c to my_vsnprintf
Diffstat (limited to 'sql/ha_myisammrg.cc')
-rw-r--r-- | sql/ha_myisammrg.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/ha_myisammrg.cc b/sql/ha_myisammrg.cc index 7a5d4fcf0a1..1bf2f8a31ad 100644 --- a/sql/ha_myisammrg.cc +++ b/sql/ha_myisammrg.cc @@ -406,8 +406,8 @@ int ha_myisammrg::create(const char *name, register TABLE *form, This means that it might not be possible to move the DATADIR of an embedded server without changing the paths in the .MRG file. */ - uint length= my_snprintf(buff, FN_REFLEN, "%s/%s/%s", mysql_data_home, - tables->db, tables->real_name); + uint length= my_snprintf(buff, FN_REFLEN, "%s%c%s/%s", mysql_data_home, + FN_LIBCHAR, tables->db, tables->real_name); /* If a MyISAM table is in the same directory as the MERGE table, we use the table name without a path. This means that the @@ -422,6 +422,7 @@ int ha_myisammrg::create(const char *name, register TABLE *form, } else table_name=(*tbl)->path; + DBUG_PRINT("info",("MyISAM table_name: '%s'", table_name)); *pos++= table_name; } *pos=0; |