IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28743


Ignore:
Timestamp:
Jul 28, 2010, 2:23:10 PM (16 years ago)
Author:
bills
Message:

in -updatewarp don't need to join to warpBackgroundSkyfile pxUpdateRun will handle that if necessary
Fix typo in warpBackgroundSkyfile table name

Location:
trunk/ippTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/bgtool_warp.sql

    r28486 r28743  
    1313    rawExp.exp_time
    1414FROM warpBackgroundRun
    15 JOIN warpBackgroundImfile USING(warp_bg_id)
     15JOIN warpBackgroundSkyfile USING(warp_bg_id)
    1616JOIN warpRun USING(warp_id)
    1717JOIN fakeRun USING(fake_id)
  • trunk/ippTools/src/bgtool.c

    r28737 r28743  
    6969static const tableData warpTables[] = {
    7070    { "warpBackgroundRun", (void*)&warpBackgroundRunObjectFromMetadata, &warpBackgroundRunInsertObject },
    71     { "warpBackgroundImfile", (void*)&warpBackgroundSkyfileObjectFromMetadata, &warpBackgroundSkyfileInsertObject },
     71    { "warpBackgroundSkyfile", (void*)&warpBackgroundSkyfileObjectFromMetadata, &warpBackgroundSkyfileInsertObject },
    7272    { NULL, NULL, NULL }
    7373};
     
    12601260    }
    12611261
    1262     psString query = psStringCopy("UPDATE warpBackgroundRun JOIN warpBackgroundSkyfile USING(warp_bg_id)");
     1262    psString query = psStringCopy("UPDATE warpBackgroundRun");
    12631263    bool result = pxUpdateRun(config, where, &query, "warpBackgroundRun", "warp_bg_id",
    12641264                              "warpBackgroundSkyfile", true);
  • trunk/ippTools/src/bgtoolConfig.c

    r28737 r28743  
    328328    psMetadataAddStr(warpArgs, PS_LIST_TAIL, "-dist_group", PS_META_DUPLICATE_OK, "search by dist_group", NULL);
    329329    pxmagicAddArguments(warpArgs);
     330    pxspaceAddArguments(warpArgs);
    330331    psMetadataAddBool(warpArgs, PS_LIST_TAIL, "-all", 0, "search without arguments", false);
    331332    psMetadataAddU64(warpArgs, PS_LIST_TAIL, "-limit", 0, "limit result set to N items", 0);
Note: See TracChangeset for help on using the changeset viewer.