show column sum error
Posted: 2015-06-17 00:46
I just upgraded from 5.40 to 5.41 rev.762 and tested on a production application.
In my production app I have 2 tables to capture invoicing data: Invoice_header & Invoice_details. When displaying the invoice_details records in the table view script I needed the "show column sum" parameter active in order to show a sum of all the values captured in the details table that eventually form the total value for an invoice in the invoice_header table.
With version 5.40 that parameter ws running just fine. With this late version 5.41 I am getting the following error message:
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 ' CONCAT('$', FORMAT(sum(`invoice_details`.`amount`), 2)) from `invoice_details` LEFT JOIN `invoice_header' at line 1
I did a work around by unchecking the "show column sum" and it worked fine.
Any suggestions?
In my production app I have 2 tables to capture invoicing data: Invoice_header & Invoice_details. When displaying the invoice_details records in the table view script I needed the "show column sum" parameter active in order to show a sum of all the values captured in the details table that eventually form the total value for an invoice in the invoice_header table.
With version 5.40 that parameter ws running just fine. With this late version 5.41 I am getting the following error message:
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 ' CONCAT('$', FORMAT(sum(`invoice_details`.`amount`), 2)) from `invoice_details` LEFT JOIN `invoice_header' at line 1
I did a work around by unchecking the "show column sum" and it worked fine.
Any suggestions?