Changeset 10040
- Timestamp:
- Nov 16, 2006, 6:31:19 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/regtool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/regtool.c
r9764 r10040 395 395 // build a query to search by exp_tag 396 396 psMetadata *where = psMetadataAlloc(); 397 if (!psMetadataAddS tr(where, PS_LIST_TAIL, "exp_tag", 0, "==", newExp->exp_tag)) {397 if (!psMetadataAddS32(where, PS_LIST_TAIL, "exp_tag", 0, "==", newExp->exp_tag)) { 398 398 // rollback 399 399 if (!psDBRollback(config->dbh)) { … … 688 688 } 689 689 690 return p2PendingExpRowAlloc( 691 exp->exp_tag, 690 psString exp_tag = psDBIntToString(exp->exp_tag); 691 692 p2PendingExpRow *p2Exp = p2PendingExpRowAlloc( 693 exp_tag, 692 694 "my recipe", 693 695 0xff, // XXX calc version number … … 695 697 label 696 698 ); 699 700 psFree(exp_tag); 701 702 return p2Exp; 697 703 } 698 704 … … 863 869 } 864 870 871 psString exp_tag =psDBIntToString(exp->exp_tag); 872 865 873 rawDetrendExpRow *raw = rawDetrendExpRowAlloc( 866 exp ->exp_tag,874 exp_tag, 867 875 exp->camera, 868 876 exp->telescope, … … 884 892 dateobs 885 893 ); 894 895 psFree(exp_tag); 886 896 887 897 if (dateobs) {
Note:
See TracChangeset
for help on using the changeset viewer.
