Release 1.0.6. Workaround for 8.2 and 8.3.
This commit is contained in:
@ -12,13 +12,11 @@
|
||||
|
||||
#include "executor/spi.h"
|
||||
|
||||
extern void execute(int expected, const char *sql);
|
||||
extern void execute_plan(int expected, SPIPlanPtr plan, Datum *values, const char *nulls);
|
||||
extern void execute_with_format(int expected, const char *format, ...)
|
||||
__attribute__((format(printf, 2, 3)));
|
||||
extern void execute_with_args(int expected, const char *src, int nargs, Oid argtypes[], Datum values[], const bool nulls[]);
|
||||
extern void execute_with_format_args(int expected, const char *format, int nargs, Oid argtypes[], Datum values[], const bool nulls[], ...)
|
||||
__attribute__((format(printf, 2, 7)));
|
||||
#if PG_VERSION_NUM < 80300
|
||||
|
||||
typedef void *SPIPlanPtr;
|
||||
|
||||
#endif
|
||||
|
||||
#if PG_VERSION_NUM < 80400
|
||||
|
||||
@ -27,4 +25,12 @@ extern int SPI_execute_with_args(const char *src, int nargs, Oid *argtypes,
|
||||
|
||||
#endif
|
||||
|
||||
extern void execute(int expected, const char *sql);
|
||||
extern void execute_plan(int expected, SPIPlanPtr plan, Datum *values, const char *nulls);
|
||||
extern void execute_with_format(int expected, const char *format, ...)
|
||||
__attribute__((format(printf, 2, 3)));
|
||||
extern void execute_with_args(int expected, const char *src, int nargs, Oid argtypes[], Datum values[], const bool nulls[]);
|
||||
extern void execute_with_format_args(int expected, const char *format, int nargs, Oid argtypes[], Datum values[], const bool nulls[], ...)
|
||||
__attribute__((format(printf, 2, 7)));
|
||||
|
||||
#endif /* PGUT_SPI_H */
|
||||
|
Reference in New Issue
Block a user