We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b89ee54 commit 67067f9Copy full SHA for 67067f9
src/include/utils/datetime.h
@@ -274,7 +274,9 @@ extern const int day_tab[2][13];
274
/*
275
* These are the rules for the Gregorian calendar, which was adopted in 1582.
276
* However, we use this calculation for all prior years as well because the
277
- * SQL standard specifies use of the Gregorian calendar.
+ * SQL standard specifies use of the Gregorian calendar. This prevents the
278
+ * date 1500-02-29 from being stored, even though it is valid in the Julian
279
+ * calendar.
280
*/
281
#define isleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
282
0 commit comments