From 8d222210c77ba9152e3ba35d937d9b08a8266295 Mon Sep 17 00:00:00 2001 From: "kaa@kaamos.(none)" <> Date: Wed, 20 Feb 2008 00:33:43 +0300 Subject: Fix for bug #31236: Inconsistent division by zero behavior for floating point numbers Some math functions did not check if the result is a valid number (i.e. neither of +-inf or nan). Fixed by validating the result where necessary and returning NULL in case of invalid result. --- sql/unireg.h | 1 - 1 file changed, 1 deletion(-) (limited to 'sql/unireg.h') diff --git a/sql/unireg.h b/sql/unireg.h index f0b4a88c7f8..a18d42baeaa 100644 --- a/sql/unireg.h +++ b/sql/unireg.h @@ -108,7 +108,6 @@ #define READ_RECORD_BUFFER (uint) (IO_SIZE*8) /* Pointer_buffer_size */ #define DISK_BUFFER_SIZE (uint) (IO_SIZE*16) /* Size of diskbuffer */ -#define POSTFIX_ERROR DBL_MAX #define ME_INFO (ME_HOLDTANG+ME_OLDWIN+ME_NOREFRESH) #define ME_ERROR (ME_BELL+ME_OLDWIN+ME_NOREFRESH) -- cgit v1.2.1