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
4e1cc323
Commit
4e1cc323
authored
Feb 26, 2003
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_udf.cc, protocol.cc:
Less default_charset_info
parent
e3579917
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
sql/protocol.cc
sql/protocol.cc
+3
-3
sql/sql_udf.cc
sql/sql_udf.cc
+2
-2
No files found.
sql/protocol.cc
View file @
4e1cc323
...
@@ -508,7 +508,7 @@ bool Protocol::send_fields(List<Item> *list, uint flag)
...
@@ -508,7 +508,7 @@ bool Protocol::send_fields(List<Item> *list, uint flag)
List_iterator_fast
<
Item
>
it
(
*
list
);
List_iterator_fast
<
Item
>
it
(
*
list
);
Item
*
item
;
Item
*
item
;
char
buff
[
80
];
char
buff
[
80
];
String
tmp
((
char
*
)
buff
,
sizeof
(
buff
),
default_charset_info
);
String
tmp
((
char
*
)
buff
,
sizeof
(
buff
),
&
my_charset_bin
);
Protocol_simple
prot
(
thd
);
Protocol_simple
prot
(
thd
);
String
*
packet
=
prot
.
storage_packet
();
String
*
packet
=
prot
.
storage_packet
();
DBUG_ENTER
(
"send_fields"
);
DBUG_ENTER
(
"send_fields"
);
...
@@ -655,7 +655,7 @@ bool Protocol::store(const char *from)
...
@@ -655,7 +655,7 @@ bool Protocol::store(const char *from)
bool
Protocol
::
store
(
I_List
<
i_string
>*
str_list
)
bool
Protocol
::
store
(
I_List
<
i_string
>*
str_list
)
{
{
char
buf
[
256
];
char
buf
[
256
];
String
tmp
(
buf
,
sizeof
(
buf
),
default_charset_info
);
String
tmp
(
buf
,
sizeof
(
buf
),
&
my_charset_bin
);
uint32
len
;
uint32
len
;
I_List_iterator
<
i_string
>
it
(
*
str_list
);
I_List_iterator
<
i_string
>
it
(
*
str_list
);
i_string
*
s
;
i_string
*
s
;
...
@@ -794,7 +794,7 @@ bool Protocol_simple::store(Field *field)
...
@@ -794,7 +794,7 @@ bool Protocol_simple::store(Field *field)
field_pos
++
;
field_pos
++
;
#endif
#endif
char
buff
[
MAX_FIELD_WIDTH
];
char
buff
[
MAX_FIELD_WIDTH
];
String
tmp
(
buff
,
sizeof
(
buff
),
default_charset_info
);
String
tmp
(
buff
,
sizeof
(
buff
),
&
my_charset_bin
);
field
->
val_str
(
&
tmp
,
&
tmp
);
field
->
val_str
(
&
tmp
,
&
tmp
);
if
(
convert
)
if
(
convert
)
return
convert_str
(
tmp
.
ptr
(),
tmp
.
length
());
return
convert_str
(
tmp
.
ptr
(),
tmp
.
length
());
...
...
sql/sql_udf.cc
View file @
4e1cc323
...
@@ -431,9 +431,9 @@ int mysql_create_function(THD *thd,udf_func *udf)
...
@@ -431,9 +431,9 @@ int mysql_create_function(THD *thd,udf_func *udf)
goto
err
;
goto
err
;
restore_record
(
table
,
2
);
// Get default values for fields
restore_record
(
table
,
2
);
// Get default values for fields
table
->
field
[
0
]
->
store
(
u_d
->
name
.
str
,
u_d
->
name
.
length
,
default
_charset_info
);
table
->
field
[
0
]
->
store
(
u_d
->
name
.
str
,
u_d
->
name
.
length
,
system
_charset_info
);
table
->
field
[
1
]
->
store
((
longlong
)
u_d
->
returns
);
table
->
field
[
1
]
->
store
((
longlong
)
u_d
->
returns
);
table
->
field
[
2
]
->
store
(
u_d
->
dl
,(
uint
)
strlen
(
u_d
->
dl
),
default
_charset_info
);
table
->
field
[
2
]
->
store
(
u_d
->
dl
,(
uint
)
strlen
(
u_d
->
dl
),
system
_charset_info
);
if
(
table
->
fields
>=
4
)
// If not old func format
if
(
table
->
fields
>=
4
)
// If not old func format
table
->
field
[
3
]
->
store
((
longlong
)
u_d
->
type
);
table
->
field
[
3
]
->
store
((
longlong
)
u_d
->
type
);
error
=
table
->
file
->
write_row
(
table
->
record
[
0
]);
error
=
table
->
file
->
write_row
(
table
->
record
[
0
]);
...
...
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