!3500 修复缺陷 声明一个游标c,fetch c,数据库宕机

Merge pull request !3500 from pulsar/master
This commit is contained in:
opengauss_bot
2023-07-24 02:41:55 +00:00
committed by Gitee
8 changed files with 271 additions and 4 deletions

View File

@ -1942,6 +1942,12 @@ typedef struct ExceptionContext {
PLpgSQL_declare_handler handler_type;
} ExceptionContext;
/*Save the type recorded during the cursor definition*/
typedef struct CursorRecordType {
char* cursor_name;
Oid type_oid;
} CursorRecordType;
/* Quick access array state */
#define IS_ARRAY_STATE(state_list, state) ((state_list && u_sess->attr.attr_sql.sql_compatibility == A_FORMAT) ? \
(linitial_int(state_list) == state) : false)