support json type
This commit is contained in:
		| @ -4005,6 +4005,17 @@ int ObResolverUtils::resolve_data_type(const ParseNode& type_node, const ObStrin | ||||
|         // do nothing | ||||
|       } | ||||
|       break; | ||||
|     case ObJsonTC: | ||||
|       if (GET_MIN_CLUSTER_VERSION() < CLUSTER_VERSION_313) { | ||||
|         ret = OB_NOT_SUPPORTED; | ||||
|         LOG_USER_ERROR(OB_NOT_SUPPORTED, "create json column before cluster min version 3.1.3."); | ||||
|       } else { | ||||
|         data_type.set_length(length); | ||||
|         data_type.set_scale(default_accuracy.get_scale()); | ||||
|         data_type.set_charset_type(CHARSET_UTF8MB4); | ||||
|         data_type.set_collation_type(CS_TYPE_UTF8MB4_BIN); | ||||
|       } | ||||
|       break; | ||||
|     case ObBitTC: | ||||
|       if (precision < 0) { | ||||
|         ret = OB_ERR_UNEXPECTED; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 xj0
					xj0