MCPcopy Create free account
hub / github.com/MariaDB/server / FindFieldColumn

Method FindFieldColumn

storage/connect/tabmysql.cpp:1023–1040  ·  view source on GitHub ↗

/ Called by Pivot tables to find default column names in a View */ as the name of last field not equal to the passed name. */ /

Source from the content-addressed store, hash-verified

1021/* as the name of last field not equal to the passed name. */
1022/***********************************************************************/
1023char *TDBMYSQL::FindFieldColumn(char *name)
1024 {
1025 int n;
1026 MYSQL_FIELD *fld;
1027 char *cp = NULL;
1028
1029 for (n = Myc.m_Fields - 1; n >= 0; n--) {
1030 fld = &Myc.m_Res->fields[n];
1031
1032 if (!name || stricmp(name, fld->name)) {
1033 cp = fld->name;
1034 break;
1035 } // endif name
1036
1037 } // endfor n
1038
1039 return cp;
1040 } // end of FindFieldColumn
1041
1042/***********************************************************************/
1043/* Send an UPDATE or DELETE command to the remote server. */

Callers 1

MakeViewColumnsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected