Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b69dd0

Browse files
michaelpqpull[bot]
authored andcommitted
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 forintervals ("deltatktbl" in datetime.c) in666cbae. Before that,RESERV was used as an equivalent of "invalid", but that's nowunreachable.Author: Joseph KoshakowReviewed-by: Jacob Champion, Gurjeet Singh, Reid ThompsonDiscussion:https://postgr.es/m/CAAvxfHd-yNO+XYnUxL=GaNZ1n+eE0V-oE0+-cC1jdjdU0KS3iw@mail.gmail.com
1 parenta7a9872 commit8b69dd0

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-
caseRESERV:
3586-
tmask= (DTK_DATE_M |DTK_TIME_M);
3587-
*dtype=uval;
3588-
break;
3589-
35903585
default:
35913586
returnDTERR_BAD_FORMAT;
35923587
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp