plugins/database/src/general_query.cpp
int
sTable( const char *tableName, const char *tableAlias, int cycler ) {
    if ( nTables >= MAX_LINKS_TABLES_OR_COLUMNS ) {
        rodsLog( LOG_ERROR, "sTable table full %d", CAT_TOO_MANY_TABLES );
        return CAT_TOO_MANY_TABLES;
    }
    snprintf( Tables[nTables].tableName, sizeof( Tables[nTables].tableName ), "%s", tableName );
    snprintf( Tables[nTables].tableAlias, sizeof( Tables[nTables].tableAlias ), "%s", tableAlias );
    Tables[nTables].cycler = cycler;
    if ( debug > 1 ) {
        printf( "table %d is %s\n", nTables, tableName );
    }
    nTables++;
    return 0;
}
/*
 sTable setup tables.

 Set up a C table of DB Tables.
 Similar to fklink, this is called with different values to initialize
 a table used within this module.

 The "cycler" flag is 1 if this table could cause cycles.  When a node
 of this type is reached, the subtrees from there are not searched so
 as to avoid loops.

*/
sTable setup tables.
Set up a C table of DB Tables.
Similar to fklink, this is called with different values to initialize
a table used within this module.

The "cycler" flag is 1 if this table could cause cycles.  When a node
of this type is reached, the subtrees from there are not searched so
as to avoid loops.
sTable setup tables . Set up a C table of DB Tables . Similar to fklink this is called with different values to initialize a table used within this module . The " cycler " flag is 1 if this table could cause cycles . When a node of this type is reached the subtrees from there are not searched so as to avoid loops .
int
sTable( const char *tableName, const char *tableAlias, int cycler ) {
    if ( nTables >= MAX_LINKS_TABLES_OR_COLUMNS ) {
        rodsLog( LOG_ERROR, "sTable table full %d", CAT_TOO_MANY_TABLES );
        return CAT_TOO_MANY_TABLES;
    }
    snprintf( Tables[nTables].tableName, sizeof( Tables[nTables].tableName ), "%s", tableName );
    snprintf( Tables[nTables].tableAlias, sizeof( Tables[nTables].tableAlias ), "%s", tableAlias );
    Tables[nTables].cycler = cycler;
    if ( debug > 1 ) {
        printf( "table %d is %s\n", nTables, tableName );
    }
    nTables++;
    return 0;
}
int sTable ( const char * tableName , const char * tableAlias , int cycler ) { if ( nTables >= MAX_LINKS_TABLES_OR_COLUMNS ) { rodsLog ( LOG_ERROR , " " , CAT_TOO_MANY_TABLES ) ; return CAT_TOO_MANY_TABLES ; } snprintf ( Tables [ nTables ] . tableName , sizeof ( Tables [ nTables ] . tableName ) , " " , tableName ) ; snprintf ( Tables [ nTables ] . tableAlias , sizeof ( Tables [ nTables ] . tableAlias ) , " " , tableAlias ) ; Tables [ nTables ] . cycler = cycler ; if ( debug > 1 ) { printf ( " \n " , nTables , tableName ) ; } nTables ++ ; return 0 ; }
sTable setup tables.
sTable setup tables .