declare condition

This commit is contained in:
nnuanyang
2023-03-29 20:14:48 -07:00
parent 5bafa03abb
commit 459304775f
7 changed files with 170 additions and 55 deletions

View File

@ -1490,6 +1490,7 @@ typedef struct PLpgSQL_compile_context {
struct PLpgSQL_stmt_block* plpgsql_parse_error_result;
struct PLpgSQL_datum** plpgsql_Datums;
struct PLpgSQL_function* plpgsql_curr_compile;
struct PLpgSQL_condition* plpgsql_conditions;
bool* datum_need_free; /* need free datum when free function/package memory? */
bool plpgsql_DumpExecTree;

View File

@ -407,9 +407,6 @@ typedef struct PLpgSQL_var { /* Scalar variable */
PLpgSQL_expr* cursor_explicit_expr;
int cursor_explicit_argrow;
int cursor_options;
int customCondition; /* only for declare condition variable. */
char *sqlstateCondition; /* only for declare condition variable. */
bool isSqlvalue;
Datum value;
bool isnull;