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
36a1d639
Commit
36a1d639
authored
Feb 23, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change snprintf to my_snprintf
parent
269ab365
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
client/mysqldump.c
client/mysqldump.c
+5
-5
No files found.
client/mysqldump.c
View file @
36a1d639
...
@@ -3292,7 +3292,7 @@ static my_bool get_view_structure(char *table, char* db)
...
@@ -3292,7 +3292,7 @@ static my_bool get_view_structure(char *table, char* db)
result_table
=
quote_name
(
table
,
table_buff
,
1
);
result_table
=
quote_name
(
table
,
table_buff
,
1
);
opt_quoted_table
=
quote_name
(
table
,
table_buff2
,
0
);
opt_quoted_table
=
quote_name
(
table
,
table_buff2
,
0
);
snprintf
(
query
,
sizeof
(
query
),
"SHOW CREATE TABLE %s"
,
result_table
);
my_
snprintf
(
query
,
sizeof
(
query
),
"SHOW CREATE TABLE %s"
,
result_table
);
if
(
mysql_query_with_error_report
(
sock
,
&
table_res
,
query
))
if
(
mysql_query_with_error_report
(
sock
,
&
table_res
,
query
))
{
{
safe_exit
(
EX_MYSQLERR
);
safe_exit
(
EX_MYSQLERR
);
...
@@ -3335,10 +3335,10 @@ static my_bool get_view_structure(char *table, char* db)
...
@@ -3335,10 +3335,10 @@ static my_bool get_view_structure(char *table, char* db)
}
}
snprintf
(
query
,
sizeof
(
query
),
my_
snprintf
(
query
,
sizeof
(
query
),
"SELECT CHECK_OPTION, DEFINER, SECURITY_TYPE "
\
"SELECT CHECK_OPTION, DEFINER, SECURITY_TYPE "
\
"FROM information_schema.views "
\
"FROM information_schema.views "
\
"WHERE table_name=
\"
%s
\"
AND table_schema=
\"
%s
\"
"
,
table
,
db
);
"WHERE table_name=
\"
%s
\"
AND table_schema=
\"
%s
\"
"
,
table
,
db
);
if
(
mysql_query
(
sock
,
query
))
if
(
mysql_query
(
sock
,
query
))
{
{
/*
/*
...
...
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