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
ecd85b18
Commit
ecd85b18
authored
Dec 21, 2004
by
acurtis@pcgem.rdg.cyberkinetica.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#6481 - storage_engine system variable allows nonsensical value
Check that the requested storage engine is enabled.
parent
af74a321
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
sql/set_var.cc
sql/set_var.cc
+3
-1
No files found.
sql/set_var.cc
View file @
ecd85b18
...
...
@@ -2945,9 +2945,11 @@ bool sys_var_thd_storage_engine::check(THD *thd, set_var *var)
if
(
var
->
value
->
result_type
()
==
STRING_RESULT
)
{
enum
db_type
db_type
;
if
(
!
(
res
=
var
->
value
->
val_str
(
&
str
))
||
!
(
var
->
save_result
.
ulong_value
=
(
ulong
)
ha_resolve_by_name
(
res
->
ptr
(),
res
->
length
())))
(
ulong
)
db_type
=
ha_resolve_by_name
(
res
->
ptr
(),
res
->
length
()))
||
ha_checktype
(
db_type
)
!=
db_type
)
{
value
=
res
?
res
->
c_ptr
()
:
"NULL"
;
goto
err
;
...
...
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