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

Commit d6d1430

Browse files
committed
Remove dead code in DecodeInterval()
This commit removes some dead code related to the unit type RESERV, whose last use has been removed from the unit lookup table used for intervals ("deltatktbl" in datetime.c) in 666cbae. Before that, RESERV was used as an equivalent of "invalid", but that's now unreachable. Author: Joseph Koshakow Reviewed-by: Jacob Champion, Gurjeet Singh, Reid Thompson Discussion: https://postgr.es/m/CAAvxfHd-yNO+XYnUxL=GaNZ1n+eE0V-oE0+-cC1jdjdU0KS3iw@mail.gmail.com
1 parent bb45156 commit d6d1430

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/backend/utils/adt/datetime.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3582,11 +3582,6 @@ DecodeInterval(char **field, int *ftype, int nf, int range,
35823582
type = uval;
35833583
break;
35843584

3585-
case RESERV:
3586-
tmask = (DTK_DATE_M | DTK_TIME_M);
3587-
*dtype = uval;
3588-
break;
3589-
35903585
default:
35913586
return DTERR_BAD_FORMAT;
35923587
}

0 commit comments

Comments
 (0)