Skip to content

Commit ec435cc

Browse files
committed
Add NODE_UPDATE_STMT and NODE_UPDATE_SET_CLAUSE to NodeType enum
New node types for the UPDATE deep parser. NODE_UPDATE_SET_ITEM and NODE_STMT_OPTIONS already exist from Plan 7.
1 parent d64a5fa commit ec435cc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/sql_parser/common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ enum class NodeType : uint16_t {
156156
NODE_CONFLICT_ACTION, // DO UPDATE SET ... or DO NOTHING
157157
NODE_RETURNING_CLAUSE, // PostgreSQL RETURNING expr_list
158158

159+
// UPDATE nodes
160+
NODE_UPDATE_STMT,
161+
NODE_UPDATE_SET_CLAUSE, // SET col=expr, col=expr in UPDATE context
162+
159163
// Shared
160164
NODE_STMT_OPTIONS, // LOW_PRIORITY, IGNORE, QUICK, DELAYED, etc.
161165
NODE_UPDATE_SET_ITEM, // single col=expr pair (shared by INSERT SET and UPDATE SET)

0 commit comments

Comments
 (0)