plugins/database/src/general_query.cpp
int
sGetColumnInfo( int defineVal, char **tableName, char **columnName ) {
    int i;
    for ( i = 0; i < nColumns; i++ ) {
        if ( Columns[i].defineValue == defineVal ) {
            *tableName = Columns[i].tableName;
            *columnName = Columns[i].columnName;
            return 0;
        }
    }
    return CAT_INVALID_ARGUMENT;
}
/* given a defineValue, return the table and column names;
   called from icatGeneralUpdate functions */
given a defineValue, return the table and column names;
called from icatGeneralUpdate functions
given a defineValue return the table and column names ; called from icatGeneralUpdate functions
int
sGetColumnInfo( int defineVal, char **tableName, char **columnName ) {
    int i;
    for ( i = 0; i < nColumns; i++ ) {
        if ( Columns[i].defineValue == defineVal ) {
            *tableName = Columns[i].tableName;
            *columnName = Columns[i].columnName;
            return 0;
        }
    }
    return CAT_INVALID_ARGUMENT;
}
int sGetColumnInfo ( int defineVal , char * * tableName , char * * columnName ) { int i ; for ( i = 0 ; i < nColumns ; i ++ ) { if ( Columns [ i ] . defineValue == defineVal ) { * tableName = Columns [ i ] . tableName ; * columnName = Columns [ i ] . columnName ; return 0 ; } } return CAT_INVALID_ARGUMENT ; }
given a defineValue, return the table and column names;
called from icatGeneralUpdate functions
given a defineValue return the table and column names ; called from icatGeneralUpdate functions