ODBC Sql Syntax error

Hi,

I'm trying to use ODBC Connector Driver 3.1.20-GA to use direct query to connect MySQL database server to PowerBI, but having this this error in dashboard view when trying to click the record that having relation with other table: 1. Salesman ID 2. Cust ID

[ma-3.1.20][10.4.22-MariaDB]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 ') = ? ) as `ITBL` group by `ABALPH` order by `ABALPH` desc limit 501' at line 119

It happened if i choose one record, but if I choose 2 records, the link working fine ie: if I choose 1 of salesman record it show error like above, but if I choose 2 or more record of salesman, it is working fine (it shows all customer data belong two those salesman). It happened only if I choose 1 record., I've have tried this Mariadb driver in MS Access just to test with the same tables, have no problem. Could you help me?. thanks

Answer Answered by Daniel Black in this comment.

Can you include the full SQL query?

I can't think of a case where ") = ? )" can occur as a table/column alias. I suspect PowerBI is generating some incorrect SQL code.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.