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
83043c3c
Commit
83043c3c
authored
Oct 10, 2005
by
svoj@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always save/restore connect string.
parent
eb8ab300
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
18 deletions
+12
-18
sql/table.cc
sql/table.cc
+6
-9
sql/unireg.cc
sql/unireg.cc
+6
-9
No files found.
sql/table.cc
View file @
83043c3c
...
...
@@ -316,8 +316,6 @@ int openfrm(THD *thd, const char *name, const char *alias, uint db_stat,
my_free
(
buff
,
MYF
(
0
));
goto
err
;
}
if
(
share
->
db_type
==
DB_TYPE_FEDERATED_DB
)
{
share
->
connect_string
.
length
=
uint2korr
(
buff
);
if
(
!
(
share
->
connect_string
.
str
=
strmake_root
(
&
outparam
->
mem_root
,
next_chunk
+
2
,
share
->
connect_string
.
length
)))
...
...
@@ -326,7 +324,6 @@ int openfrm(THD *thd, const char *name, const char *alias, uint db_stat,
goto
err
;
}
next_chunk
+=
share
->
connect_string
.
length
+
2
;
}
buff_end
=
buff
+
n_length
;
if
(
next_chunk
+
2
<
buff_end
)
{
...
...
sql/unireg.cc
View file @
83043c3c
...
...
@@ -122,7 +122,6 @@ bool mysql_create_frm(THD *thd, my_string file_name,
str_db_type
.
str
=
(
char
*
)
ha_get_storage_engine
(
create_info
->
db_type
);
str_db_type
.
length
=
strlen
(
str_db_type
.
str
);
create_info
->
extra_size
=
2
+
str_db_type
.
length
;
if
(
create_info
->
db_type
==
DB_TYPE_FEDERATED_DB
)
create_info
->
extra_size
+=
create_info
->
connect_string
.
length
+
2
;
if
((
file
=
create_frm
(
thd
,
file_name
,
db
,
table
,
reclength
,
fileinfo
,
...
...
@@ -159,14 +158,12 @@ bool mysql_create_frm(THD *thd, my_string file_name,
create_fields
,
reclength
,
data_offset
))
goto
err
;
if
(
create_info
->
db_type
==
DB_TYPE_FEDERATED_DB
)
{
int2store
(
buff
,
create_info
->
connect_string
.
length
);
if
(
my_write
(
file
,
(
const
byte
*
)
buff
,
sizeof
(
buff
),
MYF
(
MY_NABP
))
||
my_write
(
file
,
(
const
byte
*
)
create_info
->
connect_string
.
str
,
create_info
->
connect_string
.
length
,
MYF
(
MY_NABP
)))
goto
err
;
}
int2store
(
buff
,
str_db_type
.
length
);
if
(
my_write
(
file
,
(
const
byte
*
)
buff
,
sizeof
(
buff
),
MYF
(
MY_NABP
))
||
my_write
(
file
,
(
const
byte
*
)
str_db_type
.
str
,
...
...
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