示例#1
0
func (v *typeInferrer) handleValueExpr(x *ast.ValueExpr) {
	tp := types.DefaultTypeForValue(x.GetValue())
	// Set charset and collation
	x.SetType(tp)
}
示例#2
0
func (c *expressionConverter) value(v *ast.ValueExpr) {
	c.exprMap[v] = expression.Value{Val: v.GetValue()}
}
示例#3
0
func (v *typeInferrer) handleValueExpr(x *ast.ValueExpr) {
	types.DefaultTypeForValue(x.GetValue(), x.GetType())
}