Fossil

Check-in [3b2dcd9378]
Login

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

Overview
Comment:Enhanced comments on the implementation of the checkin_mtime() SQL function.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3b2dcd937899ad62adc5f57b736b788a6147f2d3
User & Date: drh 2015-01-14 23:26:48.201
Context
2015-01-15
09:28
Remove spacings at end-of-line. No change in any functionality. check-in: 080ab8cb0a user: jan.nijtmans tags: trunk
2015-01-14
23:26
Enhanced comments on the implementation of the checkin_mtime() SQL function. check-in: 3b2dcd9378 user: drh tags: trunk
11:56
Use "COLLATE nocase" when listing user names. check-in: 439453b5c7 user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
733
734
735
736
737
738
739








740
741
742
743
744
745
746
  sqlite3_value **argv
){
  sqlite3_result_int64(context, time(0));
}

/*
** Function to return the check-in time for a file.








*/
void db_checkin_mtime_function(
  sqlite3_context *context,
  int argc,
  sqlite3_value **argv
){
  i64 mtime;







>
>
>
>
>
>
>
>







733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
  sqlite3_value **argv
){
  sqlite3_result_int64(context, time(0));
}

/*
** Function to return the check-in time for a file.
**
**      checkin_mtime(CKINID,RID)
**
** CKINID:  The RID for the manifest for a check-in.
** RID:     The RID of a file in CKINID for which the check-in time
**          is desired.
**
** Returns: The check-in time in seconds since 1970.
*/
void db_checkin_mtime_function(
  sqlite3_context *context,
  int argc,
  sqlite3_value **argv
){
  i64 mtime;