Fossil

Check-in [21af96623e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:s/'%s'/%Q/ in rptshow().
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | stephan-hack
Files: files | file ages | folders
SHA1: 21af96623e6b3379925b111a051aff33ff479d24
User & Date: stephan 2011-10-20 16:31:07.993
References
2011-10-20
16:54
Cherrypick the [21af96623e6b337] change onto trunk. ... (check-in: 5abc243042 user: drh tags: trunk)
Context
2011-10-20
16:31
s/'%s'/%Q/ in rptshow(). ... (Closed-Leaf check-in: 21af96623e user: stephan tags: stephan-hack)
16:28
merged in trunk for clean base in code review tweaks. ... (check-in: 5a1ec00745 user: stephan tags: stephan-hack)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/report.c.
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
  }else{
    rn = atoi(zRep);
    if( rn ){
      db_prepare(&q,
       "SELECT sqlcode FROM reportfmt WHERE rn=%d", rn);
    }else{
      db_prepare(&q,
       "SELECT sqlcode FROM reportfmt WHERE title='%s'", zRep);
    }
    if( db_step(&q)!=SQLITE_ROW ){
      db_finalize(&q);
      rpt_list_reports();
      fossil_fatal("unknown report format(%s)!",zRep);
    }
    zSql = db_column_malloc(&q, 0);







|







1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
  }else{
    rn = atoi(zRep);
    if( rn ){
      db_prepare(&q,
       "SELECT sqlcode FROM reportfmt WHERE rn=%d", rn);
    }else{
      db_prepare(&q,
       "SELECT sqlcode FROM reportfmt WHERE title=%Q", zRep);
    }
    if( db_step(&q)!=SQLITE_ROW ){
      db_finalize(&q);
      rpt_list_reports();
      fossil_fatal("unknown report format(%s)!",zRep);
    }
    zSql = db_column_malloc(&q, 0);