aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/include/ecpglib.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2003-08-01 13:53:36 +0000
committerPeter Eisentraut <peter_e@gmx.net>2003-08-01 13:53:36 +0000
commit4f7df90db0f9c3ed61d12a1d7a9efe0de37f4fe3 (patch)
tree7e8abc6fcde6b6ae52da3ff18d1151c1999f6899 /src/interfaces/ecpg/include/ecpglib.h
parent1ffc5b05a346a54754832007e071f73b94587d26 (diff)
downloadpostgresql-4f7df90db0f9c3ed61d12a1d7a9efe0de37f4fe3.tar.gz
postgresql-4f7df90db0f9c3ed61d12a1d7a9efe0de37f4fe3.zip
Make ecpg SQLSTATE-aware. Map existing SQLCODE assignments to SQLSTATEs,
rather than parsing the message. Add some documentation about embedded SQL.
Diffstat (limited to 'src/interfaces/ecpg/include/ecpglib.h')
-rw-r--r--src/interfaces/ecpg/include/ecpglib.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/include/ecpglib.h b/src/interfaces/ecpg/include/ecpglib.h
index e99c50bc866..3f510fbfa60 100644
--- a/src/interfaces/ecpg/include/ecpglib.h
+++ b/src/interfaces/ecpg/include/ecpglib.h
@@ -6,7 +6,8 @@
#ifndef _ECPGLIB_H
#define _ECPGLIB_H
-#include <stdio.h>
+#include "postgres_fe.h"
+#include "libpq-fe.h"
#ifndef __BEOS__
#ifndef __cplusplus
@@ -71,7 +72,8 @@ bool ECPGdo_descriptor(int line, const char *connection,
const char *descriptor, const char *query);
bool ECPGdeallocate_desc(int line, const char *name);
bool ECPGallocate_desc(int line, const char *name);
-void ECPGraise(int line, int code, const char *str, int);
+void ECPGraise(int line, int code, const char *sqlstate, const char *str);
+void ECPGraise_backend(int line, PGresult *result, PGconn *conn, int compat);
bool ECPGget_desc_header(int, char *, int *);
bool ECPGget_desc(int, char *, int,...);