Fossil

Check-in [cf8b20ea]
Login

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

Overview
Comment:minor db_column usage cleanup.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | json
Files: files | file ages | folders
SHA1:cf8b20ea1ff60f3191f12e85653f0b050b024474
User & Date: stephan 2011-10-01 05:05:43
Context
2011-10-01
05:09
Added initial /json/artifact code, but it currently can only report the type of a given artifact. check-in: 6372d951 user: stephan tags: json
05:05
minor db_column usage cleanup. check-in: cf8b20ea user: stephan tags: json
05:05
added test for /json/wiki/get. check-in: 2b7edce3 user: stephan tags: json
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/json_wiki.c.

78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
             );
  if( (SQLITE_ROW != db_step(&q)) ){
    manifest_destroy(pWiki);
    g.json.resultCode = FSL_JSON_E_UNKNOWN;
    return NULL;
  }
  rid = db_column_int(&q,0);
  zUuid = mprintf("%s",(char const *)db_column_text(&q,1));
  db_finalize(&q);
  
  if( (pWiki = manifest_get(rid, CFTYPE_WIKI))!=0 ){
    zBody = pWiki->zWiki;
  }
  if( zBody==0 ){
    manifest_destroy(pWiki);







|







78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
             );
  if( (SQLITE_ROW != db_step(&q)) ){
    manifest_destroy(pWiki);
    g.json.resultCode = FSL_JSON_E_UNKNOWN;
    return NULL;
  }
  rid = db_column_int(&q,0);
  zUuid = db_column_malloc(&q,1);
  db_finalize(&q);
  
  if( (pWiki = manifest_get(rid, CFTYPE_WIKI))!=0 ){
    zBody = pWiki->zWiki;
  }
  if( zBody==0 ){
    manifest_destroy(pWiki);