[ODBC-158] When performing a query with an aggregate function such as Count or Sum from MSAccess, an error is returned Created: 2018-07-10 Updated: 2018-07-15 Resolved: 2018-07-12 |
|
| Status: | Closed |
| Project: | MariaDB Connector/ODBC |
| Component/s: | General |
| Affects Version/s: | 3.0.5 |
| Fix Version/s: | 2.0.17, 3.0.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Martin Lane | Assignee: | Lawrin Novitsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows 7 Professional 64 bit. MS Access 2010 32 bit |
||
| Attachments: |
|
| Description |
|
When running the following query: The error returned is: The error is is returned using Count, Sum, Avg, StDev and Var. But not when using Min, Max, First or Last. This error is not generated if using the MySQL ODBC connector to connect to the same database. connector log attached. |
| Comments |
| Comment by Lawrin Novitsky [ 2018-07-10 ] |
|
Thank you for your report. |
| Comment by Lawrin Novitsky [ 2018-07-12 ] |
|
Commit 91f7d86 in odbc-3.0/master |
| Comment by Lawrin Novitsky [ 2018-07-12 ] |
|
Those aggregate functions, that caused error, return LONGLONG value, and Access was getting it as SQL_C_LONG. The problem was that connector returned length of the data as 8(field's size), and not 4(requested C-type size), as specs prescribe. |