Commit 9f09e836 authored by Michael Meskes's avatar Michael Meskes

- Fixed truncate bug.

        - Added patch by Christof Petig <christof.petig@wtal.de> to
clean up
ecpglib.
parent 8ae8ddbb
...@@ -1101,5 +1101,11 @@ Tue Sep 25 20:10:03 CEST 2001 ...@@ -1101,5 +1101,11 @@ Tue Sep 25 20:10:03 CEST 2001
- Synced preproc.y with gram.y. - Synced preproc.y with gram.y.
- Changed locale handling. - Changed locale handling.
Mon Okt 1 13:49:40 CEST 2001
- Fixed truncate bug.
- Added patch by Christof Petig <christof.petig@wtal.de> to clean up
ecpglib.
- Set ecpg version to 2.9.0. - Set ecpg version to 2.9.0.
- Set library version to 3.3.0. - Set library version to 3.3.0.
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/data.c,v 1.15 2001/09/19 14:09:32 meskes Exp $ */ /* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/data.c,v 1.16 2001/10/01 12:02:28 meskes Exp $ */
#include "postgres_fe.h" #include "postgres_fe.h"
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include "sqlca.h" #include "sqlca.h"
bool bool
get_data(PGresult *results, int act_tuple, int act_field, int lineno, get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
enum ECPGttype type, enum ECPGttype ind_type, enum ECPGttype type, enum ECPGttype ind_type,
void *var, void *ind, long varcharsize, long offset, void *var, void *ind, long varcharsize, long offset,
bool isarray) bool isarray)
......
This diff is collapsed.
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/* Here are some methods used by the lib. */ /* Here are some methods used by the lib. */
/* Returns a pointer to a string containing a simple type name. */ /* Returns a pointer to a string containing a simple type name. */
void free_auto_mem(void); void free_auto_mem(void);
bool get_data(PGresult *, int, int, int, enum ECPGttype type, bool get_data(const PGresult *, int, int, int, enum ECPGttype type,
enum ECPGttype, void *, void *, long, long, bool); enum ECPGttype, void *, void *, long, long, bool);
struct connection *get_connection(const char *); struct connection *get_connection(const char *);
void init_sqlca(void); void init_sqlca(void);
...@@ -14,6 +14,7 @@ char *ecpg_strdup(const char *, int); ...@@ -14,6 +14,7 @@ char *ecpg_strdup(const char *, int);
const char *ECPGtype_name(enum ECPGttype); const char *ECPGtype_name(enum ECPGttype);
unsigned int ECPGDynamicType(Oid); unsigned int ECPGDynamicType(Oid);
/* A generic varchar type. */ /* A generic varchar type. */
struct ECPGgeneric_varchar struct ECPGgeneric_varchar
{ {
...@@ -63,3 +64,7 @@ struct descriptor ...@@ -63,3 +64,7 @@ struct descriptor
PGresult ** PGresult **
ECPGdescriptor_lvalue(int line, const char *descriptor); ECPGdescriptor_lvalue(int line, const char *descriptor);
bool
ECPGstore_result(const PGresult *results, int act_field,
const struct statement * stmt, struct variable *var);
...@@ -1552,7 +1552,7 @@ drop_type: TABLE { $$ = make_str("table"); } ...@@ -1552,7 +1552,7 @@ drop_type: TABLE { $$ = make_str("table"); }
*****************************************************************************/ *****************************************************************************/
TruncateStmt: TRUNCATE opt_table relation_name TruncateStmt: TRUNCATE opt_table relation_name
{ {
$$ = cat2_str(make_str("drop table"), $3); $$ = cat2_str(make_str("truncate table"), $3);
} }
; ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment