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
630eb4ae
Commit
630eb4ae
authored
Sep 28, 2003
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set table->charset to default for 3.22 .frm files (bug #1161)
parent
fa9766b1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
sql/table.cc
sql/table.cc
+3
-2
sql/unireg.cc
sql/unireg.cc
+1
-1
No files found.
sql/table.cc
View file @
630eb4ae
...
...
@@ -137,10 +137,11 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
outparam
->
raid_type
=
head
[
41
];
outparam
->
raid_chunks
=
head
[
42
];
outparam
->
raid_chunksize
=
uint4korr
(
head
+
43
);
if
(
!
(
outparam
->
table_charset
=
get_charset
((
uint
)
head
[
38
],
MYF
(
0
))))
outparam
->
table_charset
=
default_charset_info
;
// QQ display error message?
outparam
->
table_charset
=
get_charset
((
uint
)
head
[
38
],
MYF
(
0
));
null_field_first
=
1
;
}
if
(
!
outparam
->
table_charset
)
/* unknown charset in head[38] or pre-3.23 frm */
outparam
->
table_charset
=
default_charset_info
;
outparam
->
db_record_offset
=
1
;
if
(
db_create_options
&
HA_OPTION_LONG_BLOB_PTR
)
outparam
->
blob_ptr_size
=
portable_sizeof_char_ptr
;
...
...
sql/unireg.cc
View file @
630eb4ae
...
...
@@ -33,7 +33,7 @@
static
uchar
*
pack_screens
(
List
<
create_field
>
&
create_fields
,
uint
*
info_length
,
uint
*
screens
,
bool
small_file
);
static
uint
pack_keys
(
uchar
*
keybuff
,
uint
key_count
,
KEY
*
key_info
);
static
bool
pack_header
(
uchar
*
forminfo
,
enum
db_type
table_type
,
static
bool
pack_header
(
uchar
*
forminfo
,
enum
db_type
table_type
,
List
<
create_field
>
&
create_fields
,
uint
info_length
,
uint
screens
,
uint
table_options
,
handler
*
file
);
...
...
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