summaryrefslogtreecommitdiff
path: root/sql/sql_string.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-10-04 13:32:38 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-10-04 13:32:38 +0200
commitbb76dcbec77d31818ec7dfc0d0dc1f4b49185bc5 (patch)
tree0c288f685ac6fbc8d4bd4cdbc60bcf9942f019f7 /sql/sql_string.cc
parent1ac8149b83f002cd4754e1eca225560bc02b22e4 (diff)
parent55e07d9ade51e9e969f528d903509806142f4d1e (diff)
downloadmariadb-git-bb76dcbec77d31818ec7dfc0d0dc1f4b49185bc5.tar.gz
Merge branch '10.9' into 10.10
Diffstat (limited to 'sql/sql_string.cc')
-rw-r--r--sql/sql_string.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/sql_string.cc b/sql/sql_string.cc
index 90693f407fb..fbc97ab54fb 100644
--- a/sql/sql_string.cc
+++ b/sql/sql_string.cc
@@ -173,6 +173,17 @@ void Binary_string::qs_append_hex(const char *str, uint32 len)
}
+void Binary_string::qs_append_hex_uint32(uint32 num)
+{
+ char *to= Ptr + str_length;
+ APPEND_HEX(to, (uchar) (num >> 24));
+ APPEND_HEX(to, (uchar) (num >> 16));
+ APPEND_HEX(to, (uchar) (num >> 8));
+ APPEND_HEX(to, (uchar) num);
+ str_length+= 8;
+}
+
+
// Convert a string to its HEX representation
bool Binary_string::set_hex(const char *str, uint32 len)
{