Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0e8e44e7
Commit
0e8e44e7
authored
May 19, 2005
by
reggie@mdk10.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG# 10687 - MERGE engine fails under Windows
This patch was submitted by Ingo and it appears to work correctly.
parent
b5a60fe2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
sql/ha_myisammrg.cc
sql/ha_myisammrg.cc
+3
-2
strings/my_vsnprintf.c
strings/my_vsnprintf.c
+7
-1
No files found.
sql/ha_myisammrg.cc
View file @
0e8e44e7
...
...
@@ -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
;
...
...
strings/my_vsnprintf.c
View file @
0e8e44e7
...
...
@@ -28,7 +28,8 @@
%#[l]u
%#[l]x
%#.#s Note first # is ignored
%c
RETURN
length of result string
*/
...
...
@@ -120,6 +121,11 @@ int my_vsnprintf(char *to, size_t n, const char* fmt, va_list ap)
to
+=
res_length
;
continue
;
}
else
if
(
*
fmt
==
'c'
)
{
*
(
to
++
)
=
(
char
)
va_arg
(
ap
,
int
);
continue
;
}
/* We come here on '%%', unknown code or too long parameter */
if
(
to
==
end
)
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment