mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
This one cleans the cursor problems ecpg had so far. It is now able
to understand cursors with variables. Michael
This commit is contained in:
@ -16,6 +16,15 @@ struct _include_path { char * path;
|
||||
|
||||
extern struct _include_path *include_paths;
|
||||
|
||||
struct cursor { char *name;
|
||||
char *command;
|
||||
struct arguments * argsinsert;
|
||||
struct arguments * argsresult;
|
||||
struct cursor *next;
|
||||
};
|
||||
|
||||
extern struct cursor *cur;
|
||||
|
||||
/* This is a linked list of the variable names and types. */
|
||||
struct variable
|
||||
{
|
||||
@ -28,6 +37,15 @@ struct variable
|
||||
extern struct ECPGtype ecpg_no_indicator;
|
||||
extern struct variable no_indicator;
|
||||
|
||||
struct arguments {
|
||||
struct variable * variable;
|
||||
struct variable * indicator;
|
||||
struct arguments * next;
|
||||
};
|
||||
|
||||
extern struct arguments * argsinsert;
|
||||
extern struct arguments * argsresult;
|
||||
|
||||
/* functions */
|
||||
|
||||
extern void lex_init(void);
|
||||
|
Reference in New Issue
Block a user