Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7013090

Browse files
author
Michael Meskes
committed
*** empty log message ***
1 parent94ae69f commit7013090

File tree

4 files changed

+34
-5
lines changed

4 files changed

+34
-5
lines changed

‎src/interfaces/ecpg/include/ecpglib.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ extern"C"
3535
enumECPGttype,void*,void*,long,long);
3636
char*ecpg_alloc(long,int);
3737
char*ecpg_strdup(constchar*,int);
38+
constchar*ECPGtype_name(enumECPGttype);
39+
3840

3941
/* and some vars */
4042
externstructauto_mem*auto_allocs;

‎src/interfaces/ecpg/include/ecpgtype.h

Lines changed: 28 additions & 2 deletions
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
enumECPGdtype
5455
{
5556
ECPGd_count,
@@ -72,7 +73,32 @@ extern"C"
7273

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

75-
constchar*ECPGtype_name(enumECPGttype);
76+
/* A generic varchar type. */
77+
structECPGgeneric_varchar
78+
{
79+
intlen;
80+
chararr[1];
81+
};
82+
83+
/* keep a list of memory we allocated for the user */
84+
structauto_mem
85+
{
86+
void*pointer;
87+
structauto_mem*next;
88+
};
89+
90+
/* structure to store one statement */
91+
structstatement
92+
{
93+
intlineno;
94+
char*command;
95+
structconnection*connection;
96+
structvariable*inlist;
97+
structvariable*outlist;
98+
};
99+
100+
101+
/* define this for simplicity as well as compatibility */
76102

77103
#ifdef__cplusplus
78104
}

‎src/interfaces/ecpg/lib/Makefile.in

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp