IsUUIDColumn returns whether an Expr is UUID
(expression Expr)
| 624 | |
| 625 | // IsUUIDColumn returns whether an Expr is UUID |
| 626 | func IsUUIDColumn(expression Expr) bool { |
| 627 | if varRef, ok := expression.(*VarRef); ok { |
| 628 | return varRef.DataType == memCom.UUID |
| 629 | } |
| 630 | return false |
| 631 | } |
| 632 | |
| 633 | // Cast returns an expression that casts the input to the desired type. |
| 634 | // The returned expression AST will be used directly for VM instruction |