Fix:
authorMarc G. Fournier
Thu, 15 Jan 1998 20:54:52 +0000 (20:54 +0000)
committerMarc G. Fournier
Thu, 15 Jan 1998 20:54:52 +0000 (20:54 +0000)
nodeAgg.c: WARN -> NOTICE for elog
parse_oper.c: was created after patch for fmgr_info, so function call wrong
scan.c: regenerated for i386_solaris using flex 2.5.4
gethostname.c: required prototype for gethostname() function
config.h.in: create prototype for isinfo() function

isinf.c: "fake" isinf() under i386_solaris using fpclass() call...

src/backend/executor/nodeAgg.c
src/backend/parser/parse_oper.c
src/backend/parser/scan.c
src/backend/port/gethostname.c
src/backend/port/isinf.c [new file with mode: 0644]
src/include/config.h.in

index feda58bcd672b3b9adf9cd8017cfec76cee92432..91c5e43b6136fb5adabd06c48f63db6e7c94698c 100644 (file)
@@ -437,7 +437,7 @@ ExecAgg(Agg *node)
                args[0] = (char *) value2[i];
            }
            else
-               elog(WARN, "ExecAgg: no valid transition functions??");
+               elog(NOTICE, "ExecAgg: no valid transition functions??");
            value1[i] = (Datum) fmgr_c(&aggfns->finalfn,
                        (FmgrValues *) args, &(nulls[i]));
        }
index ebd7d1cc71876710dc03ec7d3bfddf350fa95497..66961ca79ac6bcf6b2b4b100372374d97bc564f7 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.5 1998/01/05 03:32:29 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.6 1998/01/15 20:54:28 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -401,11 +401,9 @@ unary_oper_get_candidates(char *op,
 
    *candidates = NULL;
 
-   fmgr_info(NameEqualRegProcedure, (func_ptr *) &opKey[0].sk_func,
-             &opKey[0].sk_nargs);
+   fmgr_info(NameEqualRegProcedure, (func_ptr *) &opKey[0].sk_func);
    opKey[0].sk_argument = NameGetDatum(op);
-   fmgr_info(CharacterEqualRegProcedure, (func_ptr *) &opKey[1].sk_func,
-             &opKey[1].sk_nargs);
+   fmgr_info(CharacterEqualRegProcedure, (func_ptr *) &opKey[1].sk_func);
    opKey[1].sk_argument = CharGetDatum(rightleft);
 
    /* currently, only "unknown" can be coerced */
index 68817122dc0a7ebd2c4c3742c08aa98949cef953..002d0e7fc4777a507378f5abc98c22a15accf780 100644 (file)
@@ -1,7 +1,7 @@
 /* A lexical scanner generated by flex */
 
 /* Scanner skeleton version:
- * $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.7 1998/01/13 19:28:29 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.8 1998/01/15 20:54:30 scrappy Exp $
  */
 
 #define FLEX_SCANNER
@@ -539,7 +539,7 @@ char *yytext;
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.7 1998/01/13 19:28:29 scrappy Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/parser/Attic/scan.c,v 1.8 1998/01/15 20:54:30 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
index 780e1c6a6f58ceef901481bbdfc4327492f1d8a9..66449d8524b2edd4de5812afb2fa0bc246e732f1 100644 (file)
@@ -1,10 +1,12 @@
-/* $Id: gethostname.c,v 1.2 1997/12/19 13:34:26 scrappy Exp $ */
+/* $Id: gethostname.c,v 1.3 1998/01/15 20:54:34 scrappy Exp $ */
 
 #include 
 #include 
 
 #include 
 
+#include "config.h"
+
 int
 gethostname(char *name, int namelen)
 {
diff --git a/src/backend/port/isinf.c b/src/backend/port/isinf.c
new file mode 100644 (file)
index 0000000..ca5d22b
--- /dev/null
@@ -0,0 +1,15 @@
+/* $Id: isinf.c,v 1.1 1998/01/15 20:54:37 scrappy Exp $ */
+
+#include 
+#include   
+
+#include "config.h"
+
+
+int
+isinf(double x)
+{
+   if((fpclass(x) == FP_PINF) || (fpclass(x) == FP_NINF)) return 1;
+   else return 0;
+}
+
index 00db98f1abcfe1995156e125451e31db1df0c729..1e99ac39547de3a339fb09428cde23339505b968 100644 (file)
@@ -52,6 +52,9 @@
 
 /* Set to 1 if you have isinf() */
 #undef HAVE_ISINF
+#ifndef HAVE_ISINF
+int isinf(double x);
+#endif
 
 /* Set to 1 if you have tzset() */
 #undef HAVE_TZSET
@@ -59,7 +62,7 @@
 /* Set to 1 if you have gethostname() */
 #undef HAVE_GETHOSTNAME
 #ifndef HAVE_GETHOSTNAME
-extern int  gethostname(char *name, int namelen);
+int  gethostname(char *name, int namelen);
 #endif
 
 /* Set to 1 if you have int timezone */