summaryrefslogtreecommitdiff
path: root/storage/connect/value.cpp
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2020-10-05 12:29:51 +0200
committerOlivier Bertrand <bertrandop@gmail.com>2020-10-05 12:29:51 +0200
commit307258c8eec73522805345178aad906aa86a61af (patch)
treeb78784d79434773654795de681f9f35f3e137ee8 /storage/connect/value.cpp
parentc6eb127ca88eb998fc3a7be122845d869a8d3ffc (diff)
downloadmariadb-git-307258c8eec73522805345178aad906aa86a61af.tar.gz
- Use BIN type when charset='binary'
modified: storage/connect/ha_connect.cc - Allow JSON columns to be "binary" By setting their type as VARBINAY(132) and their name begin with Jbin_ modified: storage/connect/json.h modified: storage/connect/jsonudf.cpp modified: storage/connect/tabjson.cpp modified: storage/connect/value.cpp modified: storage/connect/value.h - CHARSET BINARY cannot be used for text columns modified: storage/connect/mysql-test/connect/r/updelx.result modified: storage/connect/mysql-test/connect/t/updelx.test
Diffstat (limited to 'storage/connect/value.cpp')
-rw-r--r--storage/connect/value.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/storage/connect/value.cpp b/storage/connect/value.cpp
index df75722d0e8..de04f7678f9 100644
--- a/storage/connect/value.cpp
+++ b/storage/connect/value.cpp
@@ -2251,6 +2251,15 @@ void BINVAL::SetBinValue(void *p)
} // end of SetBinValue
/***********************************************************************/
+/* BINVAL SetBinValue: fill string with len bytes. */
+/***********************************************************************/
+void BINVAL::SetBinValue(void* p, ulong len)
+{
+ memcpy(Binp, p, len);
+ Len = len;
+} // end of SetBinValue
+
+/***********************************************************************/
/* GetBinValue: fill a buffer with the internal binary value. */
/* This function checks whether the buffer length is enough and */
/* returns true if not. Actual filling occurs only if go is true. */