Differences From Artifact [1057c3a87c]:
- File src/leaf.c — part of check-in [ea63a2d1f4] at 2015-12-23 11:10:05 on branch trunk — Improvements to handling of localtime. The 'utc' and 'localtime' query parameters now work on all web pages. Timestamps can be expressed with a timezone modifier and that works correctly. (user: drh size: 8032) [more...]
To Artifact [d20a8cc81d]:
- File src/leaf.c — part of check-in [3a71400423] at 2020-04-28 14:27:52 on branch checkin-without-checkout — Various unrelated improvements in the single-file commit process. Moved leaf-is-closed check into its own function (affects the commit command). (user: stephan size: 8358) [more...]
| ︙ | |||
150 151 152 153 154 155 156 157 158 159 160 161 162 163 | 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | + + + + + + + + + + + |
"EXISTS(SELECT 1 FROM tagxref AS tx"
" WHERE tx.rid=%s"
" AND tx.tagid=%d"
" AND tx.tagtype>0)",
zVar, TAG_CLOSED
);
}
/*
** Returns true if vid refers to a closed leaf, else false. vid is
** assumed to refer to a manifest, but this function does not verify
** that.
*/
int leaf_is_closed(int vid){
return db_exists("SELECT 1 FROM tagxref"
" WHERE tagid=%d AND rid=%d AND tagtype>0",
TAG_CLOSED, vid);
}
/*
** Schedule a leaf check for "rid" and its parents.
*/
void leaf_eventually_check(int rid){
static Stmt parentsOf;
|
| ︙ |