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
e5c607e0
Commit
e5c607e0
authored
Apr 08, 2005
by
geert@kriem.kemuri.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing for-loop in print_warnings()
parent
dd1f0267
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
client/mysql.cc
client/mysql.cc
+1
-12
No files found.
client/mysql.cc
View file @
e5c607e0
...
...
@@ -2243,19 +2243,8 @@ print_warnings()
while
((
cur
=
mysql_fetch_row
(
result
)))
{
mysql_field_seek
(
result
,
0
);
/* Format as: <level> <code>: <message> */
for
(
uint
off
=
0
;
off
<
mysql_num_fields
(
result
);
off
++
)
{
const
char
*
str
=
cur
[
off
]
?
cur
[
off
]
:
"NULL"
;
field
=
mysql_fetch_field
(
result
);
tee_fputs
(
str
,
PAGER
);
tee_fputs
(
" "
,
PAGER
);
if
(
off
==
1
)
(
void
)
tee_fputs
(
": "
,
PAGER
);
}
(
void
)
tee_fputs
(
"
\n
"
,
PAGER
);
tee_fprintf
(
PAGER
,
"%s (Code %s): %s
\n
"
,
cur
[
0
],
cur
[
1
],
cur
[
2
]);
}
tee_fputs
(
"
\n
"
,
PAGER
);
mysql_free_result
(
result
);
}
...
...
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