Changeset 14270
- Timestamp:
- Jul 17, 2007, 11:25:40 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
dbconfig/det.md (modified) (2 diffs)
-
ippTools/src/dettool.c (modified) (1 diff)
-
ippTools/src/pxtables.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dbconfig/det.md
r14231 r14270 1 1 detRun METADATA 2 2 det_id S64 0 # Primary Key AUTO_INCREMENT 3 iteration S32 0 # Key 3 iteration S32 0 # Key INDEX(det_id, iteration) 4 4 det_type STR 64 # Key 5 5 mode STR 64 # Key … … 208 208 fault S16 0 # Key NOT NULL 209 209 END 210 211 # 212 # Note: This table needs to stay more or less identical to detNormalizedImfile. 213 # It only exists as a seperate entity so they it can have different fkeys 214 # 215 detRegisteredImfile METADATA 216 det_id S64 0 # Primary Key fkey(det_id, iteration) ref detRun(det_id, iteration) 217 iteration S32 0 # Primary Key 218 class_id STR 64 # Primary Key 219 uri STR 255 220 bg F64 0.0 221 bg_stdev F64 0.0 222 bg_mean_stdev F64 0.0 223 user_1 F64 0.0 224 user_2 F64 0.0 225 user_3 F64 0.0 226 user_4 F64 0.0 227 user_5 F64 0.0 228 path_base STR 255 229 fault S16 0 # Key NOT NULL 230 END -
trunk/ippTools/src/dettool.c
r14269 r14270 6974 6974 } 6975 6975 6976 // XXX this is going in without checking that the det_id is valid. 6977 // it seems like it be better to be using foreign key constraints rather 6978 // then having to resort to a seperate query (and locking) to check that 6979 // the det_id is valid 6980 if (!detNormalizedImfileInsert(config->dbh, 6976 if (!detRegisteredImfileInsert(config->dbh, 6981 6977 (psS64)atoll(det_id), 6982 6978 0, // the iteration is fixed at 0 -
trunk/ippTools/src/pxtables.c
r14250 r14270 79 79 CREATE_TABLE(detResidExpCreateTable); 80 80 CREATE_TABLE(detRunSummaryCreateTable); 81 CREATE_TABLE(detRegisteredImfileCreateTable); 81 82 CREATE_TABLE(warpRunCreateTable); 82 83 CREATE_TABLE(warpInputExpCreateTable); … … 159 160 DROP_TABLE(detResidExpDropTable); 160 161 DROP_TABLE(detRunSummaryDropTable); 162 DROP_TABLE(detRegisteredImfileDropTable); 161 163 DROP_TABLE(warpRunDropTable); 162 164 DROP_TABLE(warpInputExpDropTable);
Note:
See TracChangeset
for help on using the changeset viewer.
