/ Called by Pivot tables to find default column names in a View */ as the name of last field not equal to the passed name. */ /
| 1021 | /* as the name of last field not equal to the passed name. */ |
| 1022 | /***********************************************************************/ |
| 1023 | char *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. */ |