Fossil SCM

Cherrypick the [21af96623e6b337] change onto trunk.

drh 2011-10-20 16:54 trunk
Commit 5abc2430426007f561339992faef2b839c6dbc2b
1 file changed +1 -1
+1 -1
--- src/report.c
+++ src/report.c
@@ -1115,11 +1115,11 @@
11151115
if( rn ){
11161116
db_prepare(&q,
11171117
"SELECT sqlcode FROM reportfmt WHERE rn=%d", rn);
11181118
}else{
11191119
db_prepare(&q,
1120
- "SELECT sqlcode FROM reportfmt WHERE title='%s'", zRep);
1120
+ "SELECT sqlcode FROM reportfmt WHERE title=%Q", zRep);
11211121
}
11221122
if( db_step(&q)!=SQLITE_ROW ){
11231123
db_finalize(&q);
11241124
rpt_list_reports();
11251125
fossil_fatal("unknown report format(%s)!",zRep);
11261126
--- src/report.c
+++ src/report.c
@@ -1115,11 +1115,11 @@
1115 if( rn ){
1116 db_prepare(&q,
1117 "SELECT sqlcode FROM reportfmt WHERE rn=%d", rn);
1118 }else{
1119 db_prepare(&q,
1120 "SELECT sqlcode FROM reportfmt WHERE title='%s'", zRep);
1121 }
1122 if( db_step(&q)!=SQLITE_ROW ){
1123 db_finalize(&q);
1124 rpt_list_reports();
1125 fossil_fatal("unknown report format(%s)!",zRep);
1126
--- src/report.c
+++ src/report.c
@@ -1115,11 +1115,11 @@
1115 if( rn ){
1116 db_prepare(&q,
1117 "SELECT sqlcode FROM reportfmt WHERE rn=%d", rn);
1118 }else{
1119 db_prepare(&q,
1120 "SELECT sqlcode FROM reportfmt WHERE title=%Q", zRep);
1121 }
1122 if( db_step(&q)!=SQLITE_ROW ){
1123 db_finalize(&q);
1124 rpt_list_reports();
1125 fossil_fatal("unknown report format(%s)!",zRep);
1126

Keyboard Shortcuts

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