removed unneeded QUERY_TYPE_DROP_TABLE type from query_classifier.h
This commit is contained in:
@ -542,11 +542,6 @@ static skygw_query_type_t resolve_query_type(
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(lex->sql_command == SQLCOM_DROP_TABLE)
|
||||
{
|
||||
type |= QUERY_TYPE_DROP_TABLE;
|
||||
}
|
||||
|
||||
goto return_qtype;
|
||||
}
|
||||
@ -741,19 +736,7 @@ static skygw_query_type_t resolve_query_type(
|
||||
break;
|
||||
}
|
||||
} /**< for */
|
||||
#if defined(TEMPORARY_TABLES)
|
||||
if ((skygw_query_type_t)type == QUERY_TYPE_READ)
|
||||
{
|
||||
/**
|
||||
* Find out the database name and all tables the query
|
||||
* uses. Create a hashvalue from each and if any of the
|
||||
* values can be found from property's hashtable, set
|
||||
* query type to QUERY_TYPE_READ_TMP_TABLE.
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
} /**< if */
|
||||
return_qtype:
|
||||
qtype = (skygw_query_type_t)type;
|
||||
|
@ -47,7 +47,6 @@ typedef enum {
|
||||
QUERY_TYPE_EXEC_STMT = 0x1000, /*< Execute prepared statement */
|
||||
QUERY_TYPE_CREATE_TMP_TABLE = 0x2000, /*< Create temporary table */
|
||||
QUERY_TYPE_READ_TMP_TABLE = 0x4000, /*< Read temporary table */
|
||||
QUERY_TYPE_DROP_TABLE = 0x8000
|
||||
} skygw_query_type_t;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user