tidb eval_type 代码
文件路径:/types/eval_type.go
/ Copyright 2017 PingCAP, Inc.
/
/ Licensed under the Apache License, Version 2.0 (the "License");
/ you may not use this file except in compliance with the License.
/ You may obtain a copy of the License at
/
/ http://www.apache.org/licenses/LICENSE-2.0
/
/ Unless required by applicable law or agreed to in writing, software
/ distributed under the License is distributed on an "AS IS" BASIS,
/ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/ See the License for the specific language governing permissions and
/ limitations under the License.
package types
import ast "github.com/pingcap/tidb/parser/types"
/ EvalType indicates the specified types that arguments and result of a built-in function should be.
type EvalType = ast.EvalType
const (
/ ETInt represents type INT in evaluation.
ETInt = ast.ETInt
/ ETReal represents type REAL in evaluation.
ETReal = ast.ETReal
/ ETDecimal represents type DECIMAL in evaluation.
ETDecimal = ast.ETDecimal
/ ETString represents type STRING in evaluation.
ETString = ast.ETString
/ ETDatetime represents type DATETIME in evaluation.
ETDatetime = ast.ETDatetime
/ ETTimestamp represents type TIMESTAMP in evaluation.
ETTimestamp = ast.ETTimestamp
/ ETDuration represents type DURATION in evaluation.
ETDuration = ast.ETDuration
/ ETJson represents type JSON in evaluation.
ETJson = ast.ETJson
)