IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18671


Ignore:
Timestamp:
Jul 23, 2008, 10:54:05 AM (18 years ago)
Author:
Paul Price
Message:

Set the magic_id of the run based on what it is assigned.

File:
1 edited

Legend:

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

    r18670 r18671  
    256256            return false;
    257257        }
     258
     259        psS64 magic_id = psDBLastInsertID(config->dbh); // Assigned identifier
     260        run->magic_id = magic_id;
     261
    258262        if (!magicRunPrintObject(stdout, run, !simple)) {
    259263            psError(PS_ERR_UNKNOWN, false, "failed to print object");
     
    267271        }
    268272        psFree(run);
    269 
    270         psS64 magic_id = psDBLastInsertID(config->dbh); // Assigned identifier
    271273
    272274        // Create a suitable insertion query for this run
Note: See TracChangeset for help on using the changeset viewer.