DEC_DIGITS_1.patch

application/octet-stream

Filename: DEC_DIGITS_1.patch
Type: application/octet-stream
Part: 2
Message: Re: [PATCH] Fix old thinko in formula to compute sweight in numeric_sqrt().

Patch

Format: unified
File+
src/backend/utils/adt/numeric.c 2 2
diff --git a/src/backend/utils/adt/numeric.c b/src/backend/utils/adt/numeric.c
index 898c52099b..991315281a 100644
--- a/src/backend/utils/adt/numeric.c
+++ b/src/backend/utils/adt/numeric.c
@@ -72,7 +72,7 @@
  * ----------
  */
 
-#if 0
+#if 1
 #define NBASE		10
 #define HALF_NBASE	5
 #define DEC_DIGITS	1			/* decimal digits per NBASE digit */
@@ -92,7 +92,7 @@ typedef signed char NumericDigit;
 typedef signed char NumericDigit;
 #endif
 
-#if 1
+#if 0
 #define NBASE		10000
 #define HALF_NBASE	5000
 #define DEC_DIGITS	4			/* decimal digits per NBASE digit */