Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dd154dd

Browse files
committed
Make current_time deliver a fractional-second answer.
1 parent 67bf0fc commit dd154dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/utils/adt/datetime.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.68 2001/10/03 05:29:24 thomas Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.69 2001/10/04 17:10:11 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1151,7 +1151,11 @@ DecodeTimeOnly(char **field, int *ftype, int nf,
11511151
case DTK_NOW:
11521152
tmask = DTK_TIME_M;
11531153
*dtype = DTK_TIME;
1154+
#if NOT_USED
11541155
GetCurrentTime(tm);
1156+
#else
1157+
GetCurrentTimeUsec(tm, fsec);
1158+
#endif
11551159
break;
11561160

11571161
case DTK_ZULU:

0 commit comments

Comments
 (0)