Move private type to implementation.
parsing_info_t is only used by the query_classifier implementation. No need to keep it public.
This commit is contained in:
parent
23a7562d3a
commit
79fa226000
@ -61,6 +61,19 @@
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
typedef struct parsing_info_st
|
||||
{
|
||||
#if defined(SS_DEBUG)
|
||||
skygw_chk_t pi_chk_top;
|
||||
#endif
|
||||
void* pi_handle; /*< parsing info object pointer */
|
||||
char* pi_query_plain_str; /*< query as plain string */
|
||||
void (*pi_done_fp)(void *); /*< clean-up function for parsing info */
|
||||
#if defined(SS_DEBUG)
|
||||
skygw_chk_t pi_chk_tail;
|
||||
#endif
|
||||
} parsing_info_t;
|
||||
|
||||
#define QTYPE_LESS_RESTRICTIVE_THAN_WRITE(t) (t<QUERY_TYPE_WRITE ? true : false)
|
||||
|
||||
static THD* get_or_create_thd_for_parsing(MYSQL* mysql, char* query_str);
|
||||
|
@ -81,20 +81,6 @@ typedef enum
|
||||
QUERY_OP_LOAD = (1 << 12)
|
||||
} qc_query_op_t;
|
||||
|
||||
typedef struct parsing_info_st
|
||||
{
|
||||
#if defined(SS_DEBUG)
|
||||
skygw_chk_t pi_chk_top;
|
||||
#endif
|
||||
void* pi_handle; /*< parsing info object pointer */
|
||||
char* pi_query_plain_str; /*< query as plain string */
|
||||
void (*pi_done_fp)(void *); /*< clean-up function for parsing info */
|
||||
#if defined(SS_DEBUG)
|
||||
skygw_chk_t pi_chk_tail;
|
||||
#endif
|
||||
} parsing_info_t;
|
||||
|
||||
|
||||
#define QUERY_IS_TYPE(mask,type) ((mask & type) == type)
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user