Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | s/prevUuid/parent/ for json payload properties, for consistency. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
23aba0e4a371275168da748dcfb353ef |
User & Date: | stephan 2012-03-16 12:13:19.557 |
Context
2012-03-16
| ||
12:22 | Fixed a C99ism. ... (check-in: 81708461 user: stephan tags: trunk) | |
12:13 | s/prevUuid/parent/ for json payload properties, for consistency. ... (check-in: 23aba0e4 user: stephan tags: trunk) | |
00:49 | Pull in the latest version 3.7.11-alpha of SQLite. ... (check-in: 77e36ef6 user: drh tags: trunk) | |
Changes
Changes to src/json_timeline.c.
︙ | ︙ | |||
303 304 305 306 307 308 309 | " AND filename.fnid=mlink.fnid" " ORDER BY 3 /*sort*/", #else "SELECT (pid==0) AS isnew," " (fid==0) AS isdel," " (SELECT name FROM filename WHERE fnid=mlink.fnid) AS name," " (SELECT uuid FROM blob WHERE rid=fid) as uuid," | | | | 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 | " AND filename.fnid=mlink.fnid" " ORDER BY 3 /*sort*/", #else "SELECT (pid==0) AS isnew," " (fid==0) AS isdel," " (SELECT name FROM filename WHERE fnid=mlink.fnid) AS name," " (SELECT uuid FROM blob WHERE rid=fid) as uuid," " (SELECT uuid FROM blob WHERE rid=pid) as parent" " FROM mlink" " WHERE mid=%d AND pid!=fid" " ORDER BY name /*sort*/", #endif rid ); while( (SQLITE_ROW == db_step(&q)) ){ cson_value * rowV = cson_value_new_object(); cson_object * row = cson_value_get_object(rowV); int const isNew = db_column_int(&q,0); int const isDel = db_column_int(&q,1); char * zDownload = NULL; if(!rowsV){ rowsV = cson_value_new_array(); rows = cson_value_get_array(rowsV); } cson_array_append( rows, rowV ); cson_object_set(row, "name", json_new_string(db_column_text(&q,2))); cson_object_set(row, "uuid", json_new_string(db_column_text(&q,3))); if(!isNew){ cson_object_set(row, "parent", json_new_string(db_column_text(&q,4))); } cson_object_set(row, "state", json_new_string(isNew ? "added" : (isDel ? "removed" : "modified"))); |
︙ | ︙ |