mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Changing CONNECT version number and date
modified: storage/connect/ha_connect.cc storage/connect/mysql-test/connect/r/xml.result - Testing default pivot columns for srcdef Fixing order by MariaDB bug for pivot tables modified: storage/connect/tabmysql.cpp storage/connect/tabmysql.h storage/connect/tabpivot.cpp storage/connect/tabpivot.h
This commit is contained in:
@@ -900,6 +900,29 @@ PCOL TDBMYSQL::MakeFieldColumn(PGLOBAL g, char *name)
|
||||
return colp;
|
||||
} // end of MakeFieldColumn
|
||||
|
||||
/***********************************************************************/
|
||||
/* Called by Pivot tables to find default column names in a View */
|
||||
/* as the name of last field not equal to the passed name. */
|
||||
/***********************************************************************/
|
||||
char *TDBMYSQL::FindFieldColumn(char *name)
|
||||
{
|
||||
int n;
|
||||
MYSQL_FIELD *fld;
|
||||
char *cp = NULL;
|
||||
|
||||
for (n = Myc.m_Fields - 1; n >= 0; n--) {
|
||||
fld = &Myc.m_Res->fields[n];
|
||||
|
||||
if (!name || stricmp(name, fld->name)) {
|
||||
cp = fld->name;
|
||||
break;
|
||||
} // endif name
|
||||
|
||||
} // endfor n
|
||||
|
||||
return cp;
|
||||
} // end of FindFieldColumn
|
||||
|
||||
/***********************************************************************/
|
||||
/* Data Base read routine for MYSQL access method. */
|
||||
/***********************************************************************/
|
||||
|
Reference in New Issue
Block a user