IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 8, 2007, 3:47:18 PM (19 years ago)
Author:
jhoblitt
Message:

add S8|16|64 & U8|16|64 support to psDBGenerateConditionalSQL()

File:
1 edited

Legend:

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

    r10984 r10985  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.127 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2007-01-09 01:43:24 $
     14 *  @version $Revision: 1.128 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2007-01-09 01:47:18 $
    1616 *
    1717 *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
     
    19581958
    19591959    switch (item->type) {
     1960    case PS_DATA_S8:
     1961    case PS_DATA_S16:
    19601962    case PS_DATA_S32:
    19611963        // the raw opStr is good enough in the query
    19621964        psStringAppend(&query, "%s %s %d", itemName, opStr, (int)(item->data.S32));
    19631965        break;
     1966    case PS_DATA_S64:
     1967        // the raw opStr is good enough in the query
     1968        psStringAppend(&query, "%s %s %" PRId64, itemName, opStr, item->data.S64);
     1969        break;
     1970    case PS_DATA_U8:
     1971    case PS_DATA_U16:
    19641972    case PS_DATA_U32:
    19651973        psStringAppend(&query, "%s %s %u", itemName, opStr, (unsigned int)(item->data.U32));
     1974        break;
     1975    case PS_DATA_U64:
     1976        // the raw opStr is good enough in the query
     1977        psStringAppend(&query, "%s %s %" PRIu64, itemName, opStr, item->data.U64);
    19661978        break;
    19671979    case PS_DATA_F32:
     
    20472059    default:
    20482060        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    2049                 "Only types PS_DATA_S32, PS_DATA_F32, PS_DATA_F64, PS_DATA_BOOL, PS_DATA_STRING are supported");
     2061                "Fixme: Unsupported data type");
    20502062        psFree(itemName);
    20512063
Note: See TracChangeset for help on using the changeset viewer.