Thanks to visit codestin.com Credit goes to github.com
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 53f5c2d commit 6972d91Copy full SHA for 6972d91
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;
@@ -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