Fossil

Diff
Login

Differences From Artifact [ef2c2862d5]:

To Artifact [ed3f73b5b4]:


95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
  nReport = json_report_get_number(3);
  if(nReport <=0){
    json_set_err(FSL_JSON_E_MISSING_ARGS,
                 "Missing or invalid 'number' (-n) parameter.");
    return NULL;
  }

  db_prepare(&q,"SELECT rn AS rn,"
             " owner AS owner,"
             " title AS title,"
             " strftime('%%s',mtime) as mtime,"
             " cols as columns,"
             " sqlcode as sqlCode"
             " FROM reportfmt"
             " WHERE rn=%d",







|







95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
  nReport = json_report_get_number(3);
  if(nReport <=0){
    json_set_err(FSL_JSON_E_MISSING_ARGS,
                 "Missing or invalid 'number' (-n) parameter.");
    return NULL;
  }

  db_prepare(&q,"SELECT rn AS report,"
             " owner AS owner,"
             " title AS title,"
             " strftime('%%s',mtime) as mtime,"
             " cols as columns,"
             " sqlcode as sqlCode"
             " FROM reportfmt"
             " WHERE rn=%d",