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
f8143251
Commit
f8143251
authored
Jul 03, 2022
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-27595 Backport SQL service, introduced by MDEV-19275.
Embedded-server related fixes.
parent
3a8eb405
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
libmysqld/emb_qcache.cc
libmysqld/emb_qcache.cc
+1
-1
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+5
-6
sql/protocol.cc
sql/protocol.cc
+2
-2
sql/protocol.h
sql/protocol.h
+1
-1
No files found.
libmysqld/emb_qcache.cc
View file @
f8143251
...
...
@@ -490,7 +490,7 @@ int emb_load_querycache_result(THD *thd, Querycache_stream *src)
*
prev_row
=
NULL
;
data
->
embedded_info
->
prev_ptr
=
prev_row
;
return_ok:
net_send_eof
(
thd
,
thd
->
server_status
,
thd
->
protocol
->
net_send_eof
(
thd
,
thd
->
server_status
,
thd
->
get_stmt_da
()
->
current_statement_warn_count
());
DBUG_RETURN
(
0
);
err:
...
...
libmysqld/lib_sql.cc
View file @
f8143251
...
...
@@ -1125,7 +1125,7 @@ bool Protocol::send_result_set_metadata(List<Item> *list, uint flags)
for
(
uint
pos
=
0
;
(
item
=
it
++
);
pos
++
)
{
if
(
prot
.
store_
field
_metadata
(
thd
,
item
,
pos
))
if
(
prot
.
store_
item
_metadata
(
thd
,
item
,
pos
))
goto
err
;
}
...
...
@@ -1240,8 +1240,7 @@ bool Protocol_binary::write()
@retval FALSE Success
*/
bool
net_send_ok
(
THD
*
thd
,
bool
Protocol
::
net_send_ok
(
THD
*
thd
,
uint
server_status
,
uint
statement_warn_count
,
ulonglong
affected_rows
,
ulonglong
id
,
const
char
*
message
,
bool
,
bool
)
...
...
@@ -1276,7 +1275,7 @@ net_send_ok(THD *thd,
*/
bool
net_send_eof
(
THD
*
thd
,
uint
server_status
,
uint
statement_warn_count
)
Protocol
::
net_send_eof
(
THD
*
thd
,
uint
server_status
,
uint
statement_warn_count
)
{
bool
error
=
write_eof_packet
(
thd
,
server_status
,
statement_warn_count
);
thd
->
cur_data
=
0
;
...
...
@@ -1284,8 +1283,8 @@ net_send_eof(THD *thd, uint server_status, uint statement_warn_count)
}
bool
net_send_error_packet
(
THD
*
thd
,
uint
sql_errno
,
const
char
*
err
,
const
char
*
sqlstate
)
bool
Protocol
::
net_send_error_packet
(
THD
*
thd
,
uint
sql_errno
,
const
char
*
err
,
const
char
*
sqlstate
)
{
uint
error
;
char
converted_err
[
MYSQL_ERRMSG_SIZE
];
...
...
sql/protocol.cc
View file @
f8143251
...
...
@@ -906,7 +906,7 @@ bool Protocol::send_result_set_metadata(List<Item> *list, uint flags)
for
(
uint
pos
=
0
;
(
item
=
it
++
);
pos
++
)
{
prot
.
prepare_for_resend
();
if
(
prot
.
store_
field
_metadata
(
thd
,
item
,
pos
))
if
(
prot
.
store_
item
_metadata
(
thd
,
item
,
pos
))
goto
err
;
if
(
prot
.
write
())
DBUG_RETURN
(
1
);
...
...
@@ -986,7 +986,7 @@ bool Protocol::write()
#endif
/* EMBEDDED_LIBRARY */
bool
Protocol_text
::
store_
field
_metadata
(
THD
*
thd
,
Item
*
item
,
uint
pos
)
bool
Protocol_text
::
store_
item
_metadata
(
THD
*
thd
,
Item
*
item
,
uint
pos
)
{
Send_field
field
(
thd
,
item
);
return
store_field_metadata
(
thd
,
field
,
item
->
charset_for_protocol
(),
pos
);
...
...
sql/protocol.h
View file @
f8143251
...
...
@@ -201,7 +201,7 @@ class Protocol_text :public Protocol
bool
store_field_metadata
(
const
THD
*
thd
,
const
Send_field
&
field
,
CHARSET_INFO
*
charset_for_protocol
,
uint
pos
);
bool
store_
field
_metadata
(
THD
*
thd
,
Item
*
item
,
uint
pos
);
bool
store_
item
_metadata
(
THD
*
thd
,
Item
*
item
,
uint
pos
);
bool
store_field_metadata_for_list_fields
(
const
THD
*
thd
,
Field
*
field
,
const
TABLE_LIST
*
table_list
,
uint
pos
);
...
...
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