Wappler Version : 3.03
Operating System : Windows 10 Pro
phpMyAdmin
Expected behavior
What do you think should happen?
Trying to filter query results and exclude any results where “fee_note” is “null”
Actual behavior
What actually happens?
Without the “is not null” everything works as expected.
With “is not null” selected I get the error below.
How to reproduce
- Detail a step by step guide to reproduce the issue
- A screenshot or short video indicating the problem
- A copy of your code would help. Include: JS, HTML.
- Test your steps on a clean page to see if you still have an issue
This is the simple Database Table.
We want all results where “business_id” is “417” and “fee_note” is not “null” so query result should be a single result.
So with this query
The result is as expected
But when in Wappler, adding “is not null” like this
results in this error
code: "42000"
file: "/var/www/vhosts/daviesandgray.co.uk/httpdocs/dmxConnectLib/lib/db/Connection.php"
line: 80
message: "SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?)' at line 1"
trace: "#0 /var/www/vhosts/daviesandgray.co.uk/httpdocs/dmxConnectLib/lib/db/Connection.php(80): PDO->prepare('SELECT `fee_id`...')↵#1 /var/www/vhosts/daviesandgray.co.uk/httpdocs/dmxConnectLib/modules/dbconnector.php(67): lib\db\Connection->execute('SELECT `fee_id`...', Array)↵#2 /var/www/vhosts/daviesandgray.co.uk/httpdocs/dmxConnectLib/lib/App.php(174): modules\dbconnector->select(Object(stdClass), 'business_detail...')↵#3 /var/www/vhosts/daviesandgray.co.uk/httpdocs/dmxConnectLib/lib/App.php(138): lib\App->execSteps(Object(stdClass))↵#4 /var/www/vhosts/daviesandgray.co.uk/httpdocs/dmxConnectLib/lib/App.php(108): lib\App->execSteps(Array)↵#5 /var/www/vhosts/daviesandgray.co.uk/httpdocs/dmxConnectLib/lib/App.php(73): lib\App->exec(Object(stdClass))↵#6 /var/www/vhosts/daviesandgray.co.uk/httpdocs/dmxConnect/api/business_folder/business_details_actions.php(8): lib\App->define(Object(stdClass))↵#7 {main}"
In phpMyAdmin the same SQL statement
gives the correct single result