# Named Queries, Int1 Parameter Overflow

**URL:** <https://forum.inductiveautomation.com/t/named-queries-int1-parameter-overflow/77652>\
**Category:** Ignition\
**Tags:** ignition81, namedqueries\
**Created:** [August 9, 2023, 5:34pm UTC](https://forum.inductiveautomation.com/t/named-queries-int1-parameter-overflow/77652 "2023-08-09T17:34:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Graham](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@Matthew\_Graham](https://forum.inductiveautomation.com/u/Matthew_Graham)\
**Post date:** [August 9, 2023, 5:34pm UTC](https://forum.inductiveautomation.com/t/named-queries-int1-parameter-overflow/77652/1 "2023-08-09T17:34:48Z")

</div>

Hi, everyone!

There exists the potential for integer overflow when using Int1 parameters in Named Queries. For example, if -1 is passed to an Int1 parameter of a Named Query, the value will be overflowed to 255 before the query string is built in consideration of the parameters. No errors are thrown and a value of -1 will become 255 for the purposes of your query. Please keep this in mind when working with Named Queries, as you'll need to implement validations to account for this outside of the Named Query.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 9, 2023, 5:47pm UTC](https://forum.inductiveautomation.com/t/named-queries-int1-parameter-overflow/77652/2 "2023-08-09T17:47:29Z")

</div>

Looks like a signed vs unsigned thing.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/4/b47cd25472810fbc63a3aa0e7ded019667beb71e.png)
