Skip to content

Commit 7013090

Browse files
author
Michael Meskes
committed
*** empty log message ***
1 parent 94ae69f commit 7013090

File tree

4 files changed

+34
-5
lines changed

4 files changed

+34
-5
lines changed

src/interfaces/ecpg/include/ecpglib.h

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ extern "C"
3535
enum ECPGttype, void *, void *, long, long);
3636
char *ecpg_alloc(long, int);
3737
char *ecpg_strdup(const char *, int);
38+
const char *ECPGtype_name(enum ECPGttype);
39+
3840

3941
/* and some vars */
4042
extern struct auto_mem *auto_allocs;

src/interfaces/ecpg/include/ecpgtype.h

+28-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ extern "C"
4949
ECPGt_EORT, /* End of result types. */
5050
ECPGt_NO_INDICATOR /* no indicator */
5151
};
52-
52+
53+
/* descriptor items */
5354
enum ECPGdtype
5455
{
5556
ECPGd_count,
@@ -72,7 +73,32 @@ extern "C"
7273

7374
#define IS_SIMPLE_TYPE(type) ((type) >= ECPGt_char && (type) <= ECPGt_varchar2)
7475

75-
const char *ECPGtype_name(enum ECPGttype);
76+
/* A generic varchar type. */
77+
struct ECPGgeneric_varchar
78+
{
79+
int len;
80+
char arr[1];
81+
};
82+
83+
/* keep a list of memory we allocated for the user */
84+
struct auto_mem
85+
{
86+
void *pointer;
87+
struct auto_mem *next;
88+
};
89+
90+
/* structure to store one statement */
91+
struct statement
92+
{
93+
int lineno;
94+
char *command;
95+
struct connection *connection;
96+
struct variable *inlist;
97+
struct variable *outlist;
98+
};
99+
100+
101+
/* define this for simplicity as well as compatibility */
76102

77103
#ifdef __cplusplus
78104
}

src/interfaces/ecpg/lib/Makefile.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright (c) 1994, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.60 2000/02/23 19:25:42 meskes Exp $
9+
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.61 2000/02/25 11:11:15 meskes Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -36,7 +36,7 @@ include $(SRCDIR)/Makefile.shlib
3636
install: install-lib $(install-shlib-dep)
3737

3838
# Handmade dependencies in case make depend not done
39-
ecpglib.o : ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h dynamic.c
39+
ecpglib.o : ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h
4040
typename.o : typename.c ../include/ecpgtype.h
4141

4242

src/interfaces/ecpg/lib/prepare.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ ECPGdeallocate_all(int lineno)
135135
if (!b)
136136
return false;
137137
}
138-
138+
139+
return true;
139140
}
140141

141142
/* return the prepared statement */

0 commit comments

Comments
 (0)