- Joined
- Oct 9, 2020
- Messages
- 10
- Reaction score
- 0
Hi Guys,
I've got an issue with the syntax of my query that I'm stumped on as when used in something like HeidiSQL as an example It returns the data no worries. When used in the CFD app I get the following:
2021/02/17 18:49:44.867|8736|0028|Trc|CallPair._7001_1.Callflow.2.[C:1.2]-From script: AgedCareDialer - Dialer 1 - CallFlow.CFD.MySqlDatabaseAccessComponent 'getNextNumber' - Command to execute: "SELECT t1.phone FROM acd_3cx_leads t1 WHERE (t1.`active` = 1 AND t1.`name` != "" AND t1.`closeTypeId` IS NULL AND t1.`assignedUserId` IS NULL AND t1.`rowVersion` IS NULL AND t1.`statusId` = 1) ORDER BY t1.`createdOn`;"
2021/02/17 18:49:44.876|8736|0026|Err|CallPair._7001_1.Callflow.2.[C:1.2]-From script: AgedCareDialer - Dialer 1 - Dialer - Error executing last component: MySqlConnector.MySqlException (0x80004005): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"SELECT t1.phone FROM acd_3cx_leads t1 WHERE (t1.`active` = 1 AND t1.`name` != "' at line 1
---> MySqlConnector.MySqlException (0x80004005): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"SELECT t1.phone FROM acd_3cx_leads t1 WHERE (t1.`active` = 1 AND t1.`name` != "' at line 1
Can someone tell what I'm doing wrong here please?
I've got an issue with the syntax of my query that I'm stumped on as when used in something like HeidiSQL as an example It returns the data no worries. When used in the CFD app I get the following:
2021/02/17 18:49:44.867|8736|0028|Trc|CallPair._7001_1.Callflow.2.[C:1.2]-From script: AgedCareDialer - Dialer 1 - CallFlow.CFD.MySqlDatabaseAccessComponent 'getNextNumber' - Command to execute: "SELECT t1.phone FROM acd_3cx_leads t1 WHERE (t1.`active` = 1 AND t1.`name` != "" AND t1.`closeTypeId` IS NULL AND t1.`assignedUserId` IS NULL AND t1.`rowVersion` IS NULL AND t1.`statusId` = 1) ORDER BY t1.`createdOn`;"
2021/02/17 18:49:44.876|8736|0026|Err|CallPair._7001_1.Callflow.2.[C:1.2]-From script: AgedCareDialer - Dialer 1 - Dialer - Error executing last component: MySqlConnector.MySqlException (0x80004005): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"SELECT t1.phone FROM acd_3cx_leads t1 WHERE (t1.`active` = 1 AND t1.`name` != "' at line 1
---> MySqlConnector.MySqlException (0x80004005): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"SELECT t1.phone FROM acd_3cx_leads t1 WHERE (t1.`active` = 1 AND t1.`name` != "' at line 1
Can someone tell what I'm doing wrong here please?


