query db on enum error when integer
Options
Riaan Backer
Member ✭
Hey Guys
I have the below enum configured
[enum.png]
Query All from database where ranking=1[query.png]
Error[error.png]
When I change the enum to text value of P1 then it works fine, seems to not work on integer
I have the below enum configured
[enum.png]
Query All from database where ranking=1[query.png]
Error[error.png]
When I change the enum to text value of P1 then it works fine, seems to not work on integer
Comments
-
The enums are all strings. So you need to make sure it shows as "text" in the space above and not "integer". If you select the drop-down you will be able to pick "1" and you'll see it turn to text.
In a dyanamic setup, you'll want to make sure you cast a number to text before passing to this test. -
Thanks Ray, egg on my face for this school boy error.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback