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
54121589
Commit
54121589
authored
Dec 21, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into deer.(none):/home/hf/work/mysql-4.1.clean
parents
2cff34ae
d3b27d03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+6
-6
No files found.
libmysqld/lib_sql.cc
View file @
54121589
...
@@ -604,7 +604,7 @@ static char *dup_str_aux(MEM_ROOT *root, const char *from, uint length,
...
@@ -604,7 +604,7 @@ static char *dup_str_aux(MEM_ROOT *root, const char *from, uint length,
uint
new_len
=
(
tocs
->
mbmaxlen
*
length
)
/
fromcs
->
mbminlen
+
1
;
uint
new_len
=
(
tocs
->
mbmaxlen
*
length
)
/
fromcs
->
mbminlen
+
1
;
result
=
(
char
*
)
alloc_root
(
root
,
new_len
);
result
=
(
char
*
)
alloc_root
(
root
,
new_len
);
length
=
copy_and_convert
(
result
,
new_len
,
length
=
copy_and_convert
(
result
,
new_len
,
tocs
,
from
,
length
,
fromcs
,
&
dummy_err
);
tocs
,
from
,
length
,
fromcs
,
&
dummy_err
);
}
}
else
else
{
{
...
@@ -645,15 +645,15 @@ bool Protocol::send_fields(List<Item> *list, uint flag)
...
@@ -645,15 +645,15 @@ bool Protocol::send_fields(List<Item> *list, uint flag)
item
->
make_field
(
&
server_field
);
item
->
make_field
(
&
server_field
);
client_field
->
db
=
dup_str_aux
(
field_alloc
,
server_field
.
db_name
,
client_field
->
db
=
dup_str_aux
(
field_alloc
,
server_field
.
db_name
,
strlen
(
server_field
.
db_name
),
cs
,
thd_cs
);
strlen
(
server_field
.
db_name
),
cs
,
thd_cs
);
client_field
->
table
=
dup_str_aux
(
field_alloc
,
server_field
.
table_name
,
client_field
->
table
=
dup_str_aux
(
field_alloc
,
server_field
.
table_name
,
strlen
(
server_field
.
table_name
),
cs
,
thd_cs
);
strlen
(
server_field
.
table_name
),
cs
,
thd_cs
);
client_field
->
name
=
dup_str_aux
(
field_alloc
,
server_field
.
col_name
,
client_field
->
name
=
dup_str_aux
(
field_alloc
,
server_field
.
col_name
,
strlen
(
server_field
.
col_name
),
cs
,
thd_cs
);
strlen
(
server_field
.
col_name
),
cs
,
thd_cs
);
client_field
->
org_table
=
dup_str_aux
(
field_alloc
,
server_field
.
org_table_name
,
client_field
->
org_table
=
dup_str_aux
(
field_alloc
,
server_field
.
org_table_name
,
strlen
(
server_field
.
org_table_name
),
cs
,
thd_cs
);
strlen
(
server_field
.
org_table_name
),
cs
,
thd_cs
);
client_field
->
org_name
=
dup_str_aux
(
field_alloc
,
server_field
.
org_col_name
,
client_field
->
org_name
=
dup_str_aux
(
field_alloc
,
server_field
.
org_col_name
,
strlen
(
server_field
.
org_col_name
),
cs
,
thd_cs
);
strlen
(
server_field
.
org_col_name
),
cs
,
thd_cs
);
if
(
item
->
collation
.
collation
==
&
my_charset_bin
||
thd_cs
==
NULL
)
if
(
item
->
collation
.
collation
==
&
my_charset_bin
||
thd_cs
==
NULL
)
{
{
/* No conversion */
/* No conversion */
...
...
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