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
0616d690
Commit
0616d690
authored
Aug 24, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve default error message for optimize/repair table
sql/sql_table.cc: Add result_code to default error message
parent
a34ca4bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
sql/sql_table.cc
sql/sql_table.cc
+10
-5
No files found.
sql/sql_table.cc
View file @
0616d690
...
@@ -2388,11 +2388,16 @@ send_result_message:
...
@@ -2388,11 +2388,16 @@ send_result_message:
}
}
default:
// Probably HA_ADMIN_INTERNAL_ERROR
default:
// Probably HA_ADMIN_INTERNAL_ERROR
protocol
->
store
(
"error"
,
5
,
system_charset_info
);
{
protocol
->
store
(
"Unknown - internal error during operation"
,
41
char
buf
[
ERRMSGSIZE
+
20
];
,
system_charset_info
);
uint
length
=
my_snprintf
(
buf
,
ERRMSGSIZE
,
fatal_error
=
1
;
"Unknown - internal error %d during operation"
,
break
;
result_code
);
protocol
->
store
(
"error"
,
5
,
system_charset_info
);
protocol
->
store
(
buf
,
length
,
system_charset_info
);
fatal_error
=
1
;
break
;
}
}
}
if
(
fatal_error
)
if
(
fatal_error
)
table
->
table
->
s
->
version
=
0
;
// Force close of table
table
->
table
->
s
->
version
=
0
;
// Force close of table
...
...
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