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
0f298f02
Commit
0f298f02
authored
Jul 23, 2004
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_db.cc:
mysqld crashes on CREATE TABLE in a database with corrupted db.opt file. Bug#4646
parent
9d3edfb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
sql/sql_db.cc
sql/sql_db.cc
+2
-0
No files found.
sql/sql_db.cc
View file @
0f298f02
...
...
@@ -327,6 +327,7 @@ bool load_db_opt(THD *thd, const char *path, HA_CREATE_INFO *create)
{
sql_print_error
(
"Error while loading database options: '%s':"
,
path
);
sql_print_error
(
ER
(
ER_UNKNOWN_CHARACTER_SET
),
pos
+
1
);
create
->
default_table_charset
=
default_charset_info
;
}
}
else
if
(
!
strncmp
(
buf
,
"default-collation"
,
(
pos
-
buf
)))
...
...
@@ -336,6 +337,7 @@ bool load_db_opt(THD *thd, const char *path, HA_CREATE_INFO *create)
{
sql_print_error
(
"Error while loading database options: '%s':"
,
path
);
sql_print_error
(
ER
(
ER_UNKNOWN_COLLATION
),
pos
+
1
);
create
->
default_table_charset
=
default_charset_info
;
}
}
}
...
...
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