IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2006, 10:36:15 AM (20 years ago)
Author:
jhoblitt
Message:

rename pxConfig database -> dbh

File:
1 edited

Legend:

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

    r6337 r6341  
    7979    PS_ASSERT_PTR_NON_NULL(config, NULL); \
    8080 \
    81     psArray *exposures = exptype##SelectRowObjects(config->database, \
     81    psArray *exposures = exptype##SelectRowObjects(config->dbh, \
    8282        config->where, MAX_ROWS); \
    8383    if (!exposures) { \
     
    9797            exposure->exp_id); \
    9898 \
    99         psArray *images = imfiletype##SelectRowObjects(config->database, where, \
     99        psArray *images = imfiletype##SelectRowObjects(config->dbh, where, \
    100100            MAX_ROWS); \
    101101        psFree(where); \
     
    155155{
    156156    PS_ASSERT_PTR_NON_NULL(config, false);
    157     PS_ASSERT_PTR_NON_NULL(config->database, false);
     157    PS_ASSERT_PTR_NON_NULL(config->dbh, false);
    158158    PS_ASSERT_PTR_NON_NULL(frame, false);
    159159
    160     psDB *dbh = config->database;
     160    psDB *dbh = config->dbh;
    161161
    162162    if (!rawScienceExpInsertObject(dbh, frame->exposure)) {
    163         psError(PS_ERR_UNKNOWN, false, "database access failed");
     163        psError(PS_ERR_UNKNOWN, false, "dbh access failed");
    164164        return false;
    165165    }
     
    168168    for (long i = 0; i < images->n; i++) {
    169169        if (!rawImfileInsertObject(dbh, images->data[i])) {
    170             psError(PS_ERR_UNKNOWN, false, "database access failed");
     170            psError(PS_ERR_UNKNOWN, false, "dbh access failed");
    171171            return false;
    172172        }
     
    214214{
    215215    PS_ASSERT_PTR_NON_NULL(config, false);
    216     PS_ASSERT_PTR_NON_NULL(config->database, false);
     216    PS_ASSERT_PTR_NON_NULL(config->dbh, false);
    217217    PS_ASSERT_PTR_NON_NULL(frame, false);
    218218
    219     psDB *dbh = config->database;
     219    psDB *dbh = config->dbh;
    220220
    221221    if (!rawDetrendExpInsertObject(dbh, frame->exposure)) {
    222         psError(PS_ERR_UNKNOWN, false, "database access failed");
     222        psError(PS_ERR_UNKNOWN, false, "dbh access failed");
    223223        return false;
    224224    }
     
    227227    for (long i = 0; i < images->n; i++) {
    228228        if (!rawImfileInsertObject(dbh, images->data[i])) {
    229             psError(PS_ERR_UNKNOWN, false, "database access failed");
     229            psError(PS_ERR_UNKNOWN, false, "dbh access failed");
    230230            return false;
    231231        }
Note: See TracChangeset for help on using the changeset viewer.