IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10132


Ignore:
Timestamp:
Nov 21, 2006, 6:34:40 PM (19 years ago)
Author:
jhoblitt
Message:

compare NULL psTimes with "IS" instead of "="

File:
1 edited

Legend:

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

    r10130 r10132  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.116 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-11-22 04:18:05 $
     14 *  @version $Revision: 1.117 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-11-22 04:34:40 $
    1616 *
    1717 *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
     
    17581758                psStringAppend(&query, "%s %s '%s'", itemName, op, timeStr);
    17591759                psFree(timeStr);
     1760            } else if (strstr(op, "=")) {
     1761                psStringAppend(&query, "%s IS NULL", itemName);
    17601762            } else {
    1761                 psStringAppend(&query, "%s %s NULL", itemName, op);
     1763                psError(PS_ERR_UNKNOWN, true, "NULL psTime can't be compared with any operator other than '=='");
     1764                psFree(itemName);
     1765                return NULL;
    17621766            }
    17631767
Note: See TracChangeset for help on using the changeset viewer.