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
6768f80c
Commit
6768f80c
authored
Apr 29, 2016
by
Harin Vadodaria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#21973610
Post push fix : Fixing i_main.mysqlshow failure.
parent
3b6f9aac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
client/mysqlshow.c
client/mysqlshow.c
+3
-3
No files found.
client/mysqlshow.c
View file @
6768f80c
...
@@ -655,7 +655,7 @@ list_table_status(MYSQL *mysql,const char *db,const char *wild)
...
@@ -655,7 +655,7 @@ list_table_status(MYSQL *mysql,const char *db,const char *wild)
len
=
sizeof
(
query
);
len
=
sizeof
(
query
);
len
-=
my_snprintf
(
query
,
len
,
"show table status from `%s`"
,
db
);
len
-=
my_snprintf
(
query
,
len
,
"show table status from `%s`"
,
db
);
if
(
wild
&&
wild
[
0
]
&&
len
)
if
(
wild
&&
wild
[
0
]
&&
len
)
strxnmov
(
query
+
strlen
(
query
),
len
,
" like '"
,
wild
,
"'"
,
NullS
);
strxnmov
(
query
+
strlen
(
query
),
len
-
1
,
" like '"
,
wild
,
"'"
,
NullS
);
if
(
mysql_query
(
mysql
,
query
)
||
!
(
result
=
mysql_store_result
(
mysql
)))
if
(
mysql_query
(
mysql
,
query
)
||
!
(
result
=
mysql_store_result
(
mysql
)))
{
{
fprintf
(
stderr
,
"%s: Cannot get status for db: %s, table: %s: %s
\n
"
,
fprintf
(
stderr
,
"%s: Cannot get status for db: %s, table: %s: %s
\n
"
,
...
@@ -688,7 +688,7 @@ list_fields(MYSQL *mysql,const char *db,const char *table,
...
@@ -688,7 +688,7 @@ list_fields(MYSQL *mysql,const char *db,const char *table,
const
char
*
wild
)
const
char
*
wild
)
{
{
char
query
[
NAME_LEN
+
100
];
char
query
[
NAME_LEN
+
100
];
in
t
len
;
size_
t
len
;
MYSQL_RES
*
result
;
MYSQL_RES
*
result
;
MYSQL_ROW
row
;
MYSQL_ROW
row
;
ulong
UNINIT_VAR
(
rows
);
ulong
UNINIT_VAR
(
rows
);
...
@@ -718,7 +718,7 @@ list_fields(MYSQL *mysql,const char *db,const char *table,
...
@@ -718,7 +718,7 @@ list_fields(MYSQL *mysql,const char *db,const char *table,
len
-=
my_snprintf
(
query
,
len
,
"show /*!32332 FULL */ columns from `%s`"
,
len
-=
my_snprintf
(
query
,
len
,
"show /*!32332 FULL */ columns from `%s`"
,
table
);
table
);
if
(
wild
&&
wild
[
0
]
&&
len
)
if
(
wild
&&
wild
[
0
]
&&
len
)
strxnmov
(
query
+
strlen
(
query
),
len
,
" like '"
,
wild
,
"'"
,
NullS
);
strxnmov
(
query
+
strlen
(
query
),
len
-
1
,
" like '"
,
wild
,
"'"
,
NullS
);
if
(
mysql_query
(
mysql
,
query
)
||
!
(
result
=
mysql_store_result
(
mysql
)))
if
(
mysql_query
(
mysql
,
query
)
||
!
(
result
=
mysql_store_result
(
mysql
)))
{
{
fprintf
(
stderr
,
"%s: Cannot list columns in db: %s, table: %s: %s
\n
"
,
fprintf
(
stderr
,
"%s: Cannot list columns in db: %s, table: %s: %s
\n
"
,
...
...
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