We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e67a94 commit 605ef23Copy full SHA for 605ef23
src/interfaces/ecpg/pgtypeslib/interval.c
@@ -171,7 +171,7 @@ DecodeISO8601Interval(char *str,
171
{
172
case 'Y':
173
tm->tm_year += val;
174
- tm->tm_mon += (fval * 12);
+ tm->tm_mon += (fval * MONTHS_PER_YEAR);
175
break;
176
case 'M':
177
tm->tm_mon += val;
@@ -206,7 +206,7 @@ DecodeISO8601Interval(char *str,
206
return DTERR_BAD_FORMAT;
207
208
209
210
if (unit == '\0')
211
return 0;
212
if (unit == 'T')
0 commit comments