[enhancement](mysql) Add have_query_cache variable to be compatible with old mysql client (#21701)
This commit is contained in:
@ -96,6 +96,7 @@ public class SessionVariable implements Serializable, Writable {
|
||||
public static final String SQL_SAFE_UPDATES = "sql_safe_updates";
|
||||
public static final String NET_BUFFER_LENGTH = "net_buffer_length";
|
||||
public static final String CODEGEN_LEVEL = "codegen_level";
|
||||
public static final String HAVE_QUERY_CACHE = "have_query_cache";
|
||||
// mem limit can't smaller than bufferpool's default page size
|
||||
public static final int MIN_EXEC_MEM_LIMIT = 2097152;
|
||||
public static final String BATCH_SIZE = "batch_size";
|
||||
@ -520,6 +521,9 @@ public class SessionVariable implements Serializable, Writable {
|
||||
@VariableMgr.VarAttr(name = CODEGEN_LEVEL)
|
||||
public int codegenLevel = 0;
|
||||
|
||||
@VariableMgr.VarAttr(name = HAVE_QUERY_CACHE, flag = VariableMgr.READ_ONLY)
|
||||
public boolean haveQueryCache = false;
|
||||
|
||||
// 4096 minus 16 + 16 bytes padding that in padding pod array
|
||||
@VariableMgr.VarAttr(name = BATCH_SIZE, fuzzy = true)
|
||||
public int batchSize = 4064;
|
||||
@ -1344,6 +1348,10 @@ public class SessionVariable implements Serializable, Writable {
|
||||
return codegenLevel;
|
||||
}
|
||||
|
||||
public boolean getHaveQueryCache() {
|
||||
return haveQueryCache;
|
||||
}
|
||||
|
||||
/**
|
||||
* setMaxExecMemByte.
|
||||
**/
|
||||
|
||||
Reference in New Issue
Block a user