plugins/database/src/general_query.cpp
int fkFindName( const char *tableName ) {
    int i;
    for ( i = 0; i < nTables; i++ ) {
        if ( strcmp( Tables[i].tableName, tableName ) == 0 ) {
            return i;
        }
    }
    rodsLog( LOG_ERROR, "fkFindName table %s unknown", tableName );
    return 0;
}
/*
 Used by fklink (below) to find an existing name and return the
 value.  Once the table is set up, the code can use the integer
 table1 and table2 values to more quickly compare.
 */
Used by fklink (below) to find an existing name and return the
value.  Once the table is set up, the code can use the integer
table1 and table2 values to more quickly compare.
Used by fklink ( below ) to find an existing name and return the value . Once the table is set up the code can use the integer table1 and table2 values to more quickly compare .
int fkFindName( const char *tableName ) {
    int i;
    for ( i = 0; i < nTables; i++ ) {
        if ( strcmp( Tables[i].tableName, tableName ) == 0 ) {
            return i;
        }
    }
    rodsLog( LOG_ERROR, "fkFindName table %s unknown", tableName );
    return 0;
}
int fkFindName ( const char * tableName ) { int i ; for ( i = 0 ; i < nTables ; i ++ ) { if ( strcmp ( Tables [ i ] . tableName , tableName ) == 0 ) { return i ; } } rodsLog ( LOG_ERROR , " " , tableName ) ; return 0 ; }
Used by fklink (below) to find an existing name and return the
value.
Used by fklink ( below ) to find an existing name and return the value .