github.com/XiaoMi/Gaea@v1.2.5/parser/tidb-types/eval_type.go (about) 1 // Copyright 2017 PingCAP, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // See the License for the specific language governing permissions and 12 // limitations under the License. 13 14 package types 15 16 import ast "github.com/XiaoMi/Gaea/parser/types" 17 18 // EvalType indicates the specified types that arguments and result of a built-in function should be. 19 type EvalType = ast.EvalType 20 21 const ( 22 // ETInt represents type INT in evaluation. 23 ETInt = ast.ETInt 24 // ETReal represents type REAL in evaluation. 25 ETReal = ast.ETReal 26 // ETDecimal represents type DECIMAL in evaluation. 27 ETDecimal = ast.ETDecimal 28 // ETString represents type STRING in evaluation. 29 ETString = ast.ETString 30 // ETDatetime represents type DATETIME in evaluation. 31 ETDatetime = ast.ETDatetime 32 // ETTimestamp represents type TIMESTAMP in evaluation. 33 ETTimestamp = ast.ETTimestamp 34 // ETDuration represents type DURATION in evaluation. 35 ETDuration = ast.ETDuration 36 // ETJson represents type JSON in evaluation. 37 ETJson = ast.ETJson 38 )