mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
Fix:
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...
This commit is contained in:
@ -437,7 +437,7 @@ ExecAgg(Agg *node)
|
|||||||
args[0] = (char *) value2[i];
|
args[0] = (char *) value2[i];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
elog(WARN, "ExecAgg: no valid transition functions??");
|
elog(NOTICE, "ExecAgg: no valid transition functions??");
|
||||||
value1[i] = (Datum) fmgr_c(&aggfns->finalfn,
|
value1[i] = (Datum) fmgr_c(&aggfns->finalfn,
|
||||||
(FmgrValues *) args, &(nulls[i]));
|
(FmgrValues *) args, &(nulls[i]));
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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;
|
*candidates = NULL;
|
||||||
|
|
||||||
fmgr_info(NameEqualRegProcedure, (func_ptr *) &opKey[0].sk_func,
|
fmgr_info(NameEqualRegProcedure, (func_ptr *) &opKey[0].sk_func);
|
||||||
&opKey[0].sk_nargs);
|
|
||||||
opKey[0].sk_argument = NameGetDatum(op);
|
opKey[0].sk_argument = NameGetDatum(op);
|
||||||
fmgr_info(CharacterEqualRegProcedure, (func_ptr *) &opKey[1].sk_func,
|
fmgr_info(CharacterEqualRegProcedure, (func_ptr *) &opKey[1].sk_func);
|
||||||
&opKey[1].sk_nargs);
|
|
||||||
opKey[1].sk_argument = CharGetDatum(rightleft);
|
opKey[1].sk_argument = CharGetDatum(rightleft);
|
||||||
|
|
||||||
/* currently, only "unknown" can be coerced */
|
/* currently, only "unknown" can be coerced */
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* A lexical scanner generated by flex */
|
/* A lexical scanner generated by flex */
|
||||||
|
|
||||||
/* Scanner skeleton version:
|
/* 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
|
#define FLEX_SCANNER
|
||||||
@ -539,7 +539,7 @@ char *yytext;
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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 $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -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 <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
gethostname(char *name, int namelen)
|
gethostname(char *name, int namelen)
|
||||||
{
|
{
|
||||||
|
15
src/backend/port/isinf.c
Normal file
15
src/backend/port/isinf.c
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/* $Id: isinf.c,v 1.1 1998/01/15 20:54:37 scrappy Exp $ */
|
||||||
|
|
||||||
|
#include <ieeefp.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
isinf(double x)
|
||||||
|
{
|
||||||
|
if((fpclass(x) == FP_PINF) || (fpclass(x) == FP_NINF)) return 1;
|
||||||
|
else return 0;
|
||||||
|
}
|
||||||
|
|
@ -52,6 +52,9 @@
|
|||||||
|
|
||||||
/* Set to 1 if you have isinf() */
|
/* Set to 1 if you have isinf() */
|
||||||
#undef HAVE_ISINF
|
#undef HAVE_ISINF
|
||||||
|
#ifndef HAVE_ISINF
|
||||||
|
int isinf(double x);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Set to 1 if you have tzset() */
|
/* Set to 1 if you have tzset() */
|
||||||
#undef HAVE_TZSET
|
#undef HAVE_TZSET
|
||||||
@ -59,7 +62,7 @@
|
|||||||
/* Set to 1 if you have gethostname() */
|
/* Set to 1 if you have gethostname() */
|
||||||
#undef HAVE_GETHOSTNAME
|
#undef HAVE_GETHOSTNAME
|
||||||
#ifndef HAVE_GETHOSTNAME
|
#ifndef HAVE_GETHOSTNAME
|
||||||
extern int gethostname(char *name, int namelen);
|
int gethostname(char *name, int namelen);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Set to 1 if you have int timezone */
|
/* Set to 1 if you have int timezone */
|
||||||
|
Reference in New Issue
Block a user