IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 28, 2008, 5:14:42 PM (18 years ago)
Author:
jhoblitt
Message:

make sure that table creation errors propagate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pxtables.c

    r17145 r17844  
    3030    if (!createFunc(config->dbh)) { \
    3131        psError(PS_ERR_UNKNOWN, false, "dbh access failed"); \
    32         status = false; \
     32        if (status) { \
     33            status = false; \
     34        } \
    3335    }
    3436
     
    3638    if (!dropFunc(config->dbh)) { \
    3739        psError(PS_ERR_UNKNOWN, false, "dbh access failed"); \
    38         status = false; \
     40        if (status) { \
     41            status = false; \
     42        } \
    3943    }
    4044
     
    107111    CREATE_TABLE(pstampJobCreateTable);
    108112
    109     return true;
     113    return status;
    110114}
    111115
     
    147151    if (!p_psDBRunQuery(config->dbh, "SET FOREIGN_KEY_CHECKS=0")) {
    148152        psError(PS_ERR_UNKNOWN, false, "database error");
    149         status = false;
     153        return false;
    150154    }
    151155
     
    210214    if (!p_psDBRunQuery(config->dbh, "SET FOREIGN_KEY_CHECKS=1")) {
    211215        psError(PS_ERR_UNKNOWN, false, "database error");
    212         status = false;
     216        return false;     
    213217    }
    214218
Note: See TracChangeset for help on using the changeset viewer.