Es kann ein Problem auftreten, wenn ein SQL-Query mit Funktionen auf dem Dialog dargestellt werden soll:
SELECT
company_name AS Kunde,
SUM(amount) AS Menge
FROM INVOICE_POSITIONS
WHERE invoice_number IS NULL
AND product LIKE '%Stundensatz%'
GROUP BY company_name
ORDER BY company_name asc
Beispiel Fehlermeldung:
2020-03-17 11:45:08 jobrouter.ERROR: MDB2 Error: unknown error {"userInfo":"_doQuery: [Error message: Could not execute statement]\n[Last executed query: SELECT\ncompany_name AS Kunde,\nSUM AS Menge\nFROM INVOICE_POSITIONS\nWHERE invoice_number IS NULL\nAND product LIKE '%Stundensatz%'\nGROUP BY company_name\nORDER BY company_name asc]\n[Native code: 207]\n[Native message: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid column name 'SUM'.]\n"} []