Bug #41899 | "orgtable" field info changed in MySQL 5.1 | ||
---|---|---|---|
Submitted: | 6 Jan 2009 17:45 | Modified: | 11 Jan 2009 15:19 |
Reporter: | Andrew Hanna | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Views | Severity: | S2 (Serious) |
Version: | 5.1.30 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | field info, orgtable, VIEW |
[6 Jan 2009 17:45]
Andrew Hanna
[7 Jan 2009 0:02]
Davi Arnaut
I guess that org_table intention was to hold the original name of the (virtual or not) table if a alias is defined. Need to check which one is the documented behavior. Otherwise looks similar to Bug#41788.
[7 Jan 2009 3:24]
Andrew Hanna
If it turns out it's a documentation issue, then I'd request that it be a feature request to add another field info item that would report the original physical table of the field. Not sure if I would need to open a new bug or if this one could simply be converted if that is the case.
[11 Jan 2009 15:19]
Sveta Smirnova
Thank you for the report. According to the documentation at http://dev.mysql.com/doc/refman/5.1/en/c-api-datatypes.html: ----<Q>---- # char * org_name The name of the field, as a null-terminated string. Aliases are ignored. # char * table The name of the table containing this field, if it isn't a calculated field. For calculated fields, the table value is an empty string. If the column is selected from a view, table names the view. If the table or view was given an alias with an AS clause, the value of table is the alias. For a UNION, the value is the empty string. ----</Q>---- So current behavior is wrong, but repeats bug #41788. So I marked this bug as duplicate of bug #41788.