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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d4b3df6d
Commit
d4b3df6d
authored
Oct 04, 2004
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: Fix ALTER TABLE t DISCARD TABLESPACE (Bug #5851)
parent
e7500f43
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
innobase/include/ut0mem.h
innobase/include/ut0mem.h
+7
-3
innobase/include/ut0mem.ic
innobase/include/ut0mem.ic
+1
-1
innobase/row/row0mysql.c
innobase/row/row0mysql.c
+2
-2
innobase/ut/ut0mem.c
innobase/ut/ut0mem.c
+6
-2
No files found.
innobase/include/ut0mem.h
View file @
d4b3df6d
...
...
@@ -117,7 +117,7 @@ int
ut_strcmp
(
const
void
*
str1
,
const
void
*
str2
);
/**************************************************************************
Determine the length of a string when it is quoted with ut_strcpyq(
). */
Compute strlen(ut_strcpyq(str, q)
). */
UNIV_INLINE
ulint
ut_strlenq
(
...
...
@@ -127,7 +127,9 @@ ut_strlenq(
char
q
);
/* in: the quote character */
/**************************************************************************
Make a quoted copy of a string. */
Make a quoted copy of a NUL-terminated string. Leading and trailing
quotes will not be included; only embedded quotes will be escaped.
See also ut_strlenq() and ut_memcpyq(). */
char
*
ut_strcpyq
(
...
...
@@ -138,7 +140,9 @@ ut_strcpyq(
const
char
*
src
);
/* in: null-terminated string */
/**************************************************************************
Make a quoted copy of a fixed-length string. */
Make a quoted copy of a fixed-length string. Leading and trailing
quotes will not be included; only embedded quotes will be escaped.
See also ut_strlenq() and ut_strcpyq(). */
char
*
ut_memcpyq
(
...
...
innobase/include/ut0mem.ic
View file @
d4b3df6d
...
...
@@ -49,7 +49,7 @@ ut_strcmp(const void* str1, const void* str2)
}
/**************************************************************************
Determine the length of a string when it is quoted with ut_strcpyq(
). */
Compute strlen(ut_strcpyq(str, q)
). */
UNIV_INLINE
ulint
ut_strlenq(
...
...
innobase/row/row0mysql.c
View file @
d4b3df6d
...
...
@@ -1988,9 +1988,9 @@ row_discard_tablespace_for_mysql(
"new_id_high INT;
\n
"
"table_name CHAR;
\n
"
"BEGIN
\n
"
"table_name := "
;
"table_name :=
'
"
;
static
const
char
discard_tablespace_proc2
[]
=
";
\n
"
"
'
;
\n
"
"new_id_high := %lu;
\n
"
"new_id_low := %lu;
\n
"
"new_id := CONCAT(TO_BINARY(new_id_high, 4), TO_BINARY(new_id_low, 4));
\n
"
...
...
innobase/ut/ut0mem.c
View file @
d4b3df6d
...
...
@@ -313,7 +313,9 @@ ut_free_all_mem(void)
}
/**************************************************************************
Make a quoted copy of a string. */
Make a quoted copy of a NUL-terminated string. Leading and trailing
quotes will not be included; only embedded quotes will be escaped.
See also ut_strlenq() and ut_memcpyq(). */
char
*
ut_strcpyq
(
...
...
@@ -333,7 +335,9 @@ ut_strcpyq(
}
/**************************************************************************
Make a quoted copy of a fixed-length string. */
Make a quoted copy of a fixed-length string. Leading and trailing
quotes will not be included; only embedded quotes will be escaped.
See also ut_strlenq() and ut_strcpyq(). */
char
*
ut_memcpyq
(
...
...
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