Fossil SCM

Add the optional "showsql" query parameter to the timeline.

drh 2010-10-07 13:34 trunk
Commit 3efdd65756cff3d72189053cacd5fde249c0c777
1 file changed +3
--- src/timeline.c
+++ src/timeline.c
@@ -943,10 +943,13 @@
943943
if( nEntry<200 ){
944944
timeline_submenu(&url, "200 Entries", "n", "200", 0);
945945
}
946946
}
947947
}
948
+ if( P("showsql") ){
949
+ @ <blockquote>%h(blob_str(&sql))</blockquote>
950
+ }
948951
blob_zero(&sql);
949952
db_prepare(&q, "SELECT * FROM timeline ORDER BY timestamp DESC /*scan*/");
950953
@ <h2>%b(&desc)</h2>
951954
blob_reset(&desc);
952955
www_print_timeline(&q, tmFlags, 0);
953956
--- src/timeline.c
+++ src/timeline.c
@@ -943,10 +943,13 @@
943 if( nEntry<200 ){
944 timeline_submenu(&url, "200 Entries", "n", "200", 0);
945 }
946 }
947 }
 
 
 
948 blob_zero(&sql);
949 db_prepare(&q, "SELECT * FROM timeline ORDER BY timestamp DESC /*scan*/");
950 @ <h2>%b(&desc)</h2>
951 blob_reset(&desc);
952 www_print_timeline(&q, tmFlags, 0);
953
--- src/timeline.c
+++ src/timeline.c
@@ -943,10 +943,13 @@
943 if( nEntry<200 ){
944 timeline_submenu(&url, "200 Entries", "n", "200", 0);
945 }
946 }
947 }
948 if( P("showsql") ){
949 @ <blockquote>%h(blob_str(&sql))</blockquote>
950 }
951 blob_zero(&sql);
952 db_prepare(&q, "SELECT * FROM timeline ORDER BY timestamp DESC /*scan*/");
953 @ <h2>%b(&desc)</h2>
954 blob_reset(&desc);
955 www_print_timeline(&q, tmFlags, 0);
956

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button