Bug #8152 aggregate functions return a leading dot in the column names
Submitted: 26 Jan 2005 22:16 Modified: 26 Jan 2005 23:10
Reporter: Russ Cobbe Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / ODBC Severity:S2 (Serious)
Version:3.51.10 OS:Windows (Windows)
Assigned to: CPU Architecture:Any

[26 Jan 2005 22:16] Russ Cobbe
Description:
select count(id) as total from products

returns a column named ".total" in the result set instead of just "total" like it should.  I don't know where the leading dot is coming from but is has broken our application completely.

This only appears to happen via the myODBC driver.

How to repeat:
as above.  

Suggested fix:
Presumably this will need a setting to indicate preferred behaviour since some people likely have code dependant on both ways of reporting column names now.
[26 Jan 2005 23:10] Jorge del Conde
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html