File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 88 *
99 *
1010 * IDENTIFICATION
11- * $PostgreSQL: pgsql/src/backend/utils/adt/date.c,v 1.150 2010/01/02 16:57:53 momjian Exp $
11+ * $PostgreSQL: pgsql/src/backend/utils/adt/date.c,v 1.151 2010/02/18 04:31:16 itagaki Exp $
1212 *
1313 *-------------------------------------------------------------------------
1414 */
@@ -208,8 +208,10 @@ date_recv(PG_FUNCTION_ARGS)
208208 result = (DateADT ) pq_getmsgint (buf , sizeof (DateADT ));
209209
210210 /* Limit to the same range that date_in() accepts. */
211- if (result < - POSTGRES_EPOCH_JDATE ||
212- result >= JULIAN_MAX - POSTGRES_EPOCH_JDATE )
211+ if (DATE_NOT_FINITE (result ))
212+ /* ok */ ;
213+ else if (result < - POSTGRES_EPOCH_JDATE ||
214+ result >= JULIAN_MAX - POSTGRES_EPOCH_JDATE )
213215 ereport (ERROR ,
214216 (errcode (ERRCODE_DATETIME_VALUE_OUT_OF_RANGE ),
215217 errmsg ("date out of range" )));
You can’t perform that action at this time.
0 commit comments