IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 11, 2006, 5:33:15 PM (20 years ago)
Author:
jhoblitt
Message:

add psDBGenerateWhereConditionSQL()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/db/psDB.c

    r8270 r8305  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.80 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-08-10 21:36:54 $
     14 *  @version $Revision: 1.81 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-08-12 03:33:15 $
    1616 *
    1717 *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
     
    14921492    PS_ASSERT_PTR_NON_NULL(where, NULL);
    14931493
    1494     char *query = psStringCopy("WHERE ");
     1494    psString search = psDBGenerateWhereConditionSQL(where);
     1495    if (search) {
     1496        psStringPrepend(&search, "WHERE ");
     1497    }
     1498
     1499    return search;
     1500}
     1501
     1502char *psDBGenerateWhereConditionSQL(const psMetadata *where)
     1503{
     1504    PS_ASSERT_PTR_NON_NULL(where, NULL);
     1505
     1506    char *query = NULL;
    14951507
    14961508    // we need to know if an item is 'MULTI' so we have to march through the
Note: See TracChangeset for help on using the changeset viewer.