8000
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 c30f54a commit 84bc2b1Copy full SHA for 84bc2b1
src/interfaces/ecpg/pgtypeslib/interval.c
@@ -155,7 +155,7 @@ DecodeISO8601Interval(char *str,
155
{
156
case 'Y':
157
tm->tm_year += val;
158
- tm->tm_mon += (fval * 12);
+ tm->tm_mon += (fval * MONTHS_PER_YEAR);
159
break;
160
case 'M':
161
tm->tm_mon += val;< 6DDC /div>
@@ -191,7 +191,7 @@ DecodeISO8601Interval(char *str,
191
return DTERR_BAD_FORMAT;
192
193
194
195
if (unit == '\0')
196
return 0;
197
if (unit == 'T')
0 commit comments