1
1
/*
2
2
* this is a small part of c.h since we don't want to leak all postgres
3
3
* definitions into ecpg programs
4
- * $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpglib.h,v 1.74.2.1 2008/02/15 12:11:02 meskes Exp $
4
+ * $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpglib.h,v 1.74.2.2 2008/03/20 16:30:14 meskes Exp $
5
5
*/
6
6
7
7
#ifndef _ECPGLIB_H
@@ -47,11 +47,13 @@ bool ECPGdo(const int, const int, const int, const char *, const bool, const in
47
47
bool ECPGtrans (int , const char * , const char * );
48
48
bool ECPGdisconnect (int , const char * );
49
49
bool ECPGprepare (int , const char * , const int , const char * , const char * );
50
- bool ECPGdeallocate (int , int , const char * connection_name , const char * name );
51
- bool ECPGdeallocate_all (int , int , const char * connection_name );
52
- char * ECPGprepared_statement (const char * connection_name , const char * name , int );
50
+ bool ECPGdeallocate (int , int , const char * , const char * );
51
+ bool ECPGdeallocate_all (int , int , const char * );
52
+ char * ECPGprepared_statement (const char * , const char * , int );
53
+ PGconn * ECPGget_PGconn (const char * );
53
54
54
- char * ECPGerrmsg (void );
55
+
56
+ char * ECPGerrmsg (void );
55
57
56
58
/* print an error message */
57
59
void sqlprint (void );
@@ -63,18 +65,17 @@ void sqlprint(void);
63
65
64
66
/* dynamic SQL */
65
67
66
- bool ECPGdo_descriptor (int line , const char * connection ,
67
- const char * descriptor , const char * query );
68
- bool ECPGdeallocate_desc (int line , const char * name );
69
- bool ECPGallocate_desc (int line , const char * name );
68
+ bool ECPGdo_descriptor (int , const char * , const char * , const char * );
69
+ bool ECPGdeallocate_desc (int , const char * );
70
+ bool ECPGallocate_desc (int , const char * );
70
71
bool ECPGget_desc_header (int , const char * , int * );
71
- bool ECPGget_desc (int , const char * , int ,...);
72
+ bool ECPGget_desc (int , const char * , int , ...);
72
73
bool ECPGset_desc_header (int , const char * , int );
73
- bool ECPGset_desc (int , const char * , int ,...);
74
+ bool ECPGset_desc (int , const char * , int , ...);
74
75
75
76
void ECPGset_noind_null (enum ECPGttype , void * );
76
77
bool ECPGis_noind_null (enum ECPGttype , void * );
77
- bool ECPGdescribe (int , bool , const char * ,...);
78
+ bool ECPGdescribe (int , bool , const char * , ...);
78
79
79
80
/* dynamic result allocation */
80
81
void ECPGfree_auto_mem (void );
0 commit comments