Added query operation type requirements on where clauses and fixed a bug with regex rules.
This commit is contained in:
@ -61,10 +61,18 @@ typedef enum {
|
||||
} skygw_query_type_t;
|
||||
|
||||
typedef enum {
|
||||
QUERY_OP_UNDEFINED, QUERY_OP_SELECT, QUERY_OP_CREATE_TABLE, QUERY_OP_CREATE_INDEX,
|
||||
QUERY_OP_ALTER_TABLE, QUERY_OP_UPDATE, QUERY_OP_INSERT, QUERY_OP_INSERT_SELECT,
|
||||
QUERY_OP_DELETE, QUERY_OP_TRUNCATE, QUERY_OP_DROP_TABLE, QUERY_OP_DROP_INDEX,
|
||||
|
||||
QUERY_OP_UNDEFINED = 0,
|
||||
QUERY_OP_SELECT = 1,
|
||||
QUERY_OP_UPDATE = (1 << 1),
|
||||
QUERY_OP_INSERT = (1 << 2),
|
||||
QUERY_OP_DELETE = (1 << 3),
|
||||
QUERY_OP_INSERT_SELECT = (1 << 4),
|
||||
QUERY_OP_TRUNCATE = (1 << 5),
|
||||
QUERY_OP_ALTER_TABLE = (1 << 6),
|
||||
QUERY_OP_CREATE_TABLE = (1 << 7),
|
||||
QUERY_OP_CREATE_INDEX = (1 << 8),
|
||||
QUERY_OP_DROP_TABLE = (1 << 9),
|
||||
QUERY_OP_DROP_INDEX = (1 << 10)
|
||||
}skygw_query_op_t;
|
||||
|
||||
typedef struct parsing_info_st {
|
||||
|
||||
Reference in New Issue
Block a user