mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Upgraded to latest handlersocket code. This fixed LP:766870 "Assertion `next_insert_id == 0' failed with handlersocket"
sql/handler.cc: Added DBUG_ code
This commit is contained in:
@ -106,8 +106,18 @@ read_ui32(char *& start, char *finish)
|
||||
void
|
||||
write_ui32(string_buffer& buf, uint32_t v)
|
||||
{
|
||||
char *wp = buf.make_space(32);
|
||||
int len = snprintf(wp, 32, "%u", v);
|
||||
char *wp = buf.make_space(12);
|
||||
int len = snprintf(wp, 12, "%u", v);
|
||||
if (len > 0) {
|
||||
buf.space_wrote(len);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
write_ui64(string_buffer& buf, uint64_t v)
|
||||
{
|
||||
char *wp = buf.make_space(22);
|
||||
int len = snprintf(wp, 22, "%llu", static_cast<unsigned long long>(v));
|
||||
if (len > 0) {
|
||||
buf.space_wrote(len);
|
||||
}
|
||||
|
Reference in New Issue
Block a user