TODO: This logic is PostgreSQL-specific and needs to be refactored to support MySQL
(s string)
| 3 | // TODO: This logic is PostgreSQL-specific and needs to be refactored to support MySQL |
| 4 | |
| 5 | func IsComparisonOperator(s string) bool { |
| 6 | switch s { |
| 7 | case ">": |
| 8 | case "<": |
| 9 | case "<=": |
| 10 | case ">=": |
| 11 | case "=": |
| 12 | case "<>": |
| 13 | case "!=": |
| 14 | default: |
| 15 | return false |
| 16 | } |
| 17 | return true |
| 18 | } |
| 19 | |
| 20 | func IsMathematicalOperator(s string) bool { |
| 21 | switch s { |