mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
1) Most driver options could be set per DSN.
2) Keep FE/BE protocol more precisely. 3) Improve procedure calls. 4) A trial to avoid PREMATURE execution(#ifdef'd now). Hiroshi Inoue
This commit is contained in:
@ -216,10 +216,10 @@ struct StatementClass_
|
||||
int stmt_size_limit;
|
||||
|
||||
char pre_executing; /* This statement is prematurely executing */
|
||||
char inaccurate_result; /* Current status is PREMATURE but
|
||||
* result is inaccurate */
|
||||
char errormsg_malloced; /* Current status is PREMATURE but
|
||||
char inaccurate_result; /* Current status is PREMATURE but
|
||||
* result is inaccurate */
|
||||
char errormsg_malloced; /* Current error message is malloed (not in a static variable) ? */
|
||||
char miscinfo;
|
||||
};
|
||||
|
||||
#define SC_get_conn(a) (a->hdbc)
|
||||
@ -229,6 +229,14 @@ struct StatementClass_
|
||||
#define STMT_FREE_PARAMS_ALL 0
|
||||
#define STMT_FREE_PARAMS_DATA_AT_EXEC_ONLY 1
|
||||
|
||||
/* misc info */
|
||||
#define SC_set_pre_executable(a) (a->miscinfo |= 1L)
|
||||
#define SC_no_pre_executable(a) (a->miscinfo &= ~1L)
|
||||
#define SC_is_pre_executable(a) (a->miscinfo & 1L != 0)
|
||||
#define SC_set_fetchcursor(a) (a->miscinfo |= 2L)
|
||||
#define SC_no_fetchcursor(a) (a->miscinfo &= ~2L)
|
||||
#define SC_is_fetchcursor(a) (a->miscinfo & 2L != 0)
|
||||
|
||||
/* Statement prototypes */
|
||||
StatementClass *SC_Constructor(void);
|
||||
void InitializeStatementOptions(StatementOptions *opt);
|
||||
|
Reference in New Issue
Block a user