WithSQLMode sets the sql mode for the `EvalContext`.
(sqlMode mysql.SQLMode)
| 103 | |
| 104 | // WithSQLMode sets the sql mode for the `EvalContext`. |
| 105 | func WithSQLMode(sqlMode mysql.SQLMode) EvalCtxOption { |
| 106 | return func(s *evalCtxState) { |
| 107 | s.sqlMode = sqlMode |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | // WithTypeFlags sets the type flags for the `EvalContext`. |
| 112 | func WithTypeFlags(flags types.Flags) EvalCtxOption { |
no outgoing calls