# Debugging queries with varbinary content

**URL:** <https://www.singlestore.com/forum/t/debugging-queries-with-varbinary-content/2757>\
**Category:** Workload Profiling\
**Created:** [February 10, 2021, 3:21pm UTC](https://www.singlestore.com/forum/t/debugging-queries-with-varbinary-content/2757 "2021-02-10T15:21:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![h.fries](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/h.fries/32/573_2.png) [@h.fries](https://www.singlestore.com/forum/u/h.fries)\
**Post date:** [February 10, 2021, 3:21pm UTC](https://www.singlestore.com/forum/t/debugging-queries-with-varbinary-content/2757/1 "2021-02-10T15:21:06Z")

</div>

I am trying to debug a query that sometimes is running much longer then expecting. So I think it is hitting a corner case, depending on the used data. Part of it contains a `varbinary` value.  
If I print it in the active processes using `show full processlist`, I get some mangled output, which I can not reuse to run a query.  
`... AND `mm`.`merchant\_id` IN (_binary ']�?�\\0T�j') ...`  
Is there a way to get the value as base64 or hex when printing the query or even another way to capture the query?

---

<div class="post-metadata">

**Author:** ![hanson](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/hanson/32/196_2.png) [@hanson](https://www.singlestore.com/forum/u/hanson)\
**Post date:** [February 11, 2021, 3:46am UTC](https://www.singlestore.com/forum/t/debugging-queries-with-varbinary-content/2757/2 "2021-02-11T03:46:39Z")

</div>

Welcome to the SingleStore forums, H. Fries! I don’t have a good answer for you, but I’ve asked someone else who may know more to follow up. If you can change the app, consider inputing the data the query in hex and using UHEX(’’) instead of the varbinary value. But I understand that might not always be easy or possible.

---

<div class="post-metadata">

**Author:** ![h.fries](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/h.fries/32/573_2.png) [@h.fries](https://www.singlestore.com/forum/u/h.fries)\
**Post date:** [April 12, 2021, 12:23pm UTC](https://www.singlestore.com/forum/t/debugging-queries-with-varbinary-content/2757/3 "2021-04-12T12:23:21Z")

</div>

Ended up changing the queries to use `FROM_BASE64`

---

<div class="post-metadata">

**Author:** ![hanson](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/hanson/32/196_2.png) [@hanson](https://www.singlestore.com/forum/u/hanson)\
**Post date:** [April 12, 2021, 8:00pm UTC](https://www.singlestore.com/forum/t/debugging-queries-with-varbinary-content/2757/4 "2021-04-12T20:00:00Z")

</div>

Hi @h.fries – thanks for sharing this.
