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
a022b3c5
Commit
a022b3c5
authored
Sep 08, 2004
by
paul@kite-hub.kitebird.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql.cc:
Print sqlstate value in batch mode, not just in interactive mode.
parent
0cb0ae35
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
client/mysql.cc
client/mysql.cc
+6
-1
No files found.
client/mysql.cc
View file @
a022b3c5
...
...
@@ -2947,7 +2947,12 @@ put_info(const char *str,INFO_TYPE info_type, uint error, const char *sqlstate)
(
void
)
fflush
(
file
);
fprintf
(
file
,
"ERROR"
);
if
(
error
)
{
if
(
sqlstate
)
(
void
)
fprintf
(
file
,
" %d (%s)"
,
error
,
sqlstate
);
else
(
void
)
fprintf
(
file
,
" %d"
,
error
);
}
if
(
status
.
query_start_line
&&
line_numbers
)
{
(
void
)
fprintf
(
file
,
" at line %lu"
,
status
.
query_start_line
);
...
...
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