Hi All,
I’ve spent a heap of time working this one out and think it may be a bug, before I open a bug report though I thought Id see if anyone else out there has found a solution to this (what should be) simple SQL query. The SQL query works perfectly in the wappler database query editor and also third party (HeidiSQL) and uses valid syntax.
Server model: NodeJS
Wappler: 5.8.2
DB: MariaDB
I’m setting a count value for the amount of SMS sends per month, my custom SQL looks like this:
I then set a value for it:
However it returns a NULL value:
I’ve tried .toNumber()
to no avail, I’ve also tried variations on the SQL eg: COUNT(DISTINCT (SmsID))
also tried adding / removing ‘Global Name’.
No matter what I try, I’m getting a NULL value sent back.
Any ideas…?