fix bug insert with CHARSET_GB18030 can't hit plan_cache
This commit is contained in:
		 yishenglanlingzui
					yishenglanlingzui
				
			
				
					committed by
					
						 ob-robot
						ob-robot
					
				
			
			
				
	
			
			
			 ob-robot
						ob-robot
					
				
			
						parent
						
							779d858c7a
						
					
				
				
					commit
					6d127fe182
				
			| @ -1755,12 +1755,7 @@ int ObPlanCacheValue::handle_varchar_charset(ObCharsetType charset_type, | |||||||
|     if (OB_ISNULL(charset_node) || OB_ISNULL(varchar_node)) { |     if (OB_ISNULL(charset_node) || OB_ISNULL(varchar_node)) { | ||||||
|       ret = OB_ALLOCATE_MEMORY_FAILED; |       ret = OB_ALLOCATE_MEMORY_FAILED; | ||||||
|     } else { |     } else { | ||||||
|       const char *name = NULL; |       const char *name = ObCharset::charset_name(charset_type); | ||||||
|       if (CHARSET_BINARY ==  charset_type) { |  | ||||||
|         name = "binary"; |  | ||||||
|       } else if (CHARSET_UTF8MB4 == charset_type) { |  | ||||||
|         name = "utf8mb4"; |  | ||||||
|       } |  | ||||||
|       charset_node->str_value_ = parse_strdup(name, &allocator, &(charset_node->str_len_)); |       charset_node->str_value_ = parse_strdup(name, &allocator, &(charset_node->str_len_)); | ||||||
|       if (NULL == charset_node->str_value_) { |       if (NULL == charset_node->str_value_) { | ||||||
|         ret = OB_ALLOCATE_MEMORY_FAILED; |         ret = OB_ALLOCATE_MEMORY_FAILED; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user