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
31cdb3dd
Commit
31cdb3dd
authored
Nov 10, 2005
by
brian@zim.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show engines has been extended to now report if an engine has transactions, XA, or savepoints.
parent
b272c5b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
sql/sql_show.cc
sql/sql_show.cc
+6
-0
No files found.
sql/sql_show.cc
View file @
31cdb3dd
...
...
@@ -56,6 +56,9 @@ bool mysqld_show_storage_engines(THD *thd)
field_list
.
push_back
(
new
Item_empty_string
(
"Engine"
,
10
));
field_list
.
push_back
(
new
Item_empty_string
(
"Support"
,
10
));
field_list
.
push_back
(
new
Item_empty_string
(
"Comment"
,
80
));
field_list
.
push_back
(
new
Item_empty_string
(
"Transactions"
,
3
));
field_list
.
push_back
(
new
Item_empty_string
(
"XA"
,
3
));
field_list
.
push_back
(
new
Item_empty_string
(
"Savepoints"
,
3
));
if
(
protocol
->
send_fields
(
&
field_list
,
Protocol
::
SEND_NUM_ROWS
|
Protocol
::
SEND_EOF
))
...
...
@@ -76,6 +79,9 @@ bool mysqld_show_storage_engines(THD *thd)
option_name
=
"DEFAULT"
;
protocol
->
store
(
option_name
,
system_charset_info
);
protocol
->
store
((
*
types
)
->
comment
,
system_charset_info
);
protocol
->
store
((
*
types
)
->
commit
?
"YES"
:
"NO"
,
system_charset_info
);
protocol
->
store
((
*
types
)
->
prepare
?
"YES"
:
"NO"
,
system_charset_info
);
protocol
->
store
((
*
types
)
->
savepoint_set
?
"YES"
:
"NO"
,
system_charset_info
);
if
(
protocol
->
write
())
DBUG_RETURN
(
TRUE
);
}
...
...
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