Changeset 26958
- Timestamp:
- Feb 16, 2010, 11:20:32 AM (16 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 3 edited
-
share/difftool_definestackstack_part0.sql (modified) (2 diffs)
-
share/difftool_definestackstack_part1.sql (modified) (1 diff)
-
src/difftool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/difftool_definestackstack_part0.sql
r26927 r26958 5 5 stackRun.label AS INPUT_label, 6 6 stackRun.tess_id AS INPUT_tess_id 7 -- , 8 -- stackRun.stack_id AS INPUT_stack_id, 9 -- template.max_stack_id, 10 -- diffExp.diff_id 7 11 FROM stackRun JOIN stackSumSkyfile USING(stack_id) 8 12 JOIN ( … … 28 32 SELECT 29 33 diffRun.diff_id, 30 stackRun.stack_id 34 diffInputSkyfile.stack1, 35 diffInputSkyfile.stack2 31 36 FROM diffRun JOIN diffInputSkyfile USING(diff_id) 32 37 JOIN stackRun ON stackRun.stack_id = diffInputSkyfile.stack1 33 38 JOIN stackSumSkyfile USING(stack_id) 34 39 WHERE 1 35 -- diff where hook %s36 40 -- input where hook %s 37 ) AS diffExp ON stackRun.stack_id = diffExp.stack_id41 ) AS diffExp ON diffExp.stack1 = stackRun.stack_id AND diffExp.stack2 = template.max_stack_id 38 42 WHERE 39 43 stackSumSkyfile.fault = 0 AND stackSumSkyfile.quality = 0 44 -- diff where hook %s 40 45 -- input where hook again %s 41 46 ORDER BY stackRun.data_group,stackRun.filter -
trunk/ippTools/share/difftool_definestackstack_part1.sql
r26927 r26958 33 33 SELECT 34 34 diffRun.diff_id, 35 stackRun.stack_id 35 diffInputSkyfile.stack1, 36 diffInputSkyfile.stack2 36 37 FROM diffRun JOIN diffInputSkyfile USING(diff_id) 37 38 JOIN stackRun ON stackRun.stack_id = diffInputSkyfile.stack1 38 39 JOIN stackSumSkyfile USING(stack_id) 39 40 WHERE 1 40 -- diff where hook %s41 41 -- input where hook %s 42 ) AS diffExp ON stackRun.stack_id = diffExp.stack_id42 ) AS diffExp ON diffExp.stack1 = stackRun.stack_id AND diffExp.stack2 = template.max_stack_id 43 43 WHERE 44 44 stackSumSkyfile.fault = 0 AND stackSumSkyfile.quality = 0 45 -- diff where hook %s 45 46 -- input where hook again %s 46 47 ORDER BY stackRun.data_group,stackRun.filter,stackRun.skycell_id -
trunk/ippTools/src/difftool.c
r26949 r26958 1894 1894 psString diffQuery = NULL; 1895 1895 if (! (reRun || newTemplates) ) { 1896 psStringAppend(&diffQuery, "\n AND diff _id IS NULL");1896 psStringAppend(&diffQuery, "\n AND diffExp.diff_id IS NULL"); 1897 1897 } else { 1898 1898 diffQuery = psStringCopy("\n"); … … 1905 1905 return(false); 1906 1906 } 1907 1907 psTrace("difftool",1,query,stack2Query,diffQuery,stack1Query,stack1Query); 1908 /* exit(10); */ 1909 1908 1910 if (!psDBTransaction(config->dbh)) { 1909 1911 psError(PS_ERR_UNKNOWN, false, "database error"); … … 1911 1913 } 1912 1914 1913 if (!p_psDBRunQueryF(config->dbh, query, stack2Query, diffQuery, stack1Query, stack1Query)) {1915 if (!p_psDBRunQueryF(config->dbh, query, stack2Query, stack1Query, diffQuery, stack1Query)) { 1914 1916 psError(PS_ERR_UNKNOWN, false, "database error"); 1915 1917 psFree(query); … … 1919 1921 return false; 1920 1922 } 1923 1921 1924 psFree(query); 1922 1925 … … 1978 1981 psFree(thisWhere); 1979 1982 1980 /* psTrace("difftool",1, query,stack2Query,diffQuery,this_stack1Query,this_stack1Query); */ 1983 psTrace("difftool",1, query,stack2Query,diffQuery,this_stack1Query,this_stack1Query); 1981 1984 if (!psDBTransaction(config->dbh)) { 1982 1985 psError(PS_ERR_UNKNOWN, false, "database error"); … … 1984 1987 } 1985 1988 1986 if (!p_psDBRunQueryF(config->dbh, query, stack2Query, diffQuery, this_stack1Query, this_stack1Query)) {1989 if (!p_psDBRunQueryF(config->dbh, query, stack2Query, this_stack1Query, diffQuery, this_stack1Query)) { 1987 1990 psError(PS_ERR_UNKNOWN, false, "database error"); 1988 1991 psFree(query);
Note:
See TracChangeset
for help on using the changeset viewer.
