Fossil SCM

minor pedantic mtime "as int" casts.

stephan 2011-10-09 11:04 UTC json-multitag-test
Commit 770f9da54a217d3cf7b78de086a926cf1e38bf17
--- src/json_artifact.c
+++ src/json_artifact.c
@@ -49,12 +49,12 @@
4949
artifact_f func;
5050
} ArtifactDispatchEntry;
5151
5252
5353
/*
54
-** Generates an artifact Object for the given rid/zUuid. rid
55
-** must refer to a Checkin.
54
+** Generates an artifact Object for the given rid,
55
+** which must refer to a Checkin.
5656
**
5757
** Returned value is NULL or an Object owned by the caller.
5858
*/
5959
cson_value * json_artifact_for_ci( int rid, char showFiles ){
6060
char const * zParent = NULL;
@@ -71,11 +71,11 @@
7171
rid
7272
);
7373
7474
db_prepare(&q,
7575
"SELECT uuid, "
76
- " strftime('%%s',mtime), "
76
+ " cast(strftime('%%s',mtime) as int), "
7777
" user, "
7878
" comment,"
7979
" strftime('%%s',omtime)"
8080
" FROM blob, event"
8181
" WHERE blob.rid=%d"
8282
--- src/json_artifact.c
+++ src/json_artifact.c
@@ -49,12 +49,12 @@
49 artifact_f func;
50 } ArtifactDispatchEntry;
51
52
53 /*
54 ** Generates an artifact Object for the given rid/zUuid. rid
55 ** must refer to a Checkin.
56 **
57 ** Returned value is NULL or an Object owned by the caller.
58 */
59 cson_value * json_artifact_for_ci( int rid, char showFiles ){
60 char const * zParent = NULL;
@@ -71,11 +71,11 @@
71 rid
72 );
73
74 db_prepare(&q,
75 "SELECT uuid, "
76 " strftime('%%s',mtime), "
77 " user, "
78 " comment,"
79 " strftime('%%s',omtime)"
80 " FROM blob, event"
81 " WHERE blob.rid=%d"
82
--- src/json_artifact.c
+++ src/json_artifact.c
@@ -49,12 +49,12 @@
49 artifact_f func;
50 } ArtifactDispatchEntry;
51
52
53 /*
54 ** Generates an artifact Object for the given rid,
55 ** which must refer to a Checkin.
56 **
57 ** Returned value is NULL or an Object owned by the caller.
58 */
59 cson_value * json_artifact_for_ci( int rid, char showFiles ){
60 char const * zParent = NULL;
@@ -71,11 +71,11 @@
71 rid
72 );
73
74 db_prepare(&q,
75 "SELECT uuid, "
76 " cast(strftime('%%s',mtime) as int), "
77 " user, "
78 " comment,"
79 " strftime('%%s',omtime)"
80 " FROM blob, event"
81 " WHERE blob.rid=%d"
82
--- src/json_report.c
+++ src/json_report.c
@@ -100,11 +100,11 @@
100100
}
101101
102102
db_prepare(&q,"SELECT rn AS report,"
103103
" owner AS owner,"
104104
" title AS title,"
105
- " strftime('%%s',mtime) as mtime,"
105
+ " cast(strftime('%%s',mtime) as int) as mtime,"
106106
" cols as columns,"
107107
" sqlcode as sqlCode"
108108
" FROM reportfmt"
109109
" WHERE rn=%d",
110110
nReport);
111111
--- src/json_report.c
+++ src/json_report.c
@@ -100,11 +100,11 @@
100 }
101
102 db_prepare(&q,"SELECT rn AS report,"
103 " owner AS owner,"
104 " title AS title,"
105 " strftime('%%s',mtime) as mtime,"
106 " cols as columns,"
107 " sqlcode as sqlCode"
108 " FROM reportfmt"
109 " WHERE rn=%d",
110 nReport);
111
--- src/json_report.c
+++ src/json_report.c
@@ -100,11 +100,11 @@
100 }
101
102 db_prepare(&q,"SELECT rn AS report,"
103 " owner AS owner,"
104 " title AS title,"
105 " cast(strftime('%%s',mtime) as int) as mtime,"
106 " cols as columns,"
107 " sqlcode as sqlCode"
108 " FROM reportfmt"
109 " WHERE rn=%d",
110 nReport);
111

Keyboard Shortcuts

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