WithMaxAllowedPacket sets the value of the 'max_allowed_packet' system variable.
(size uint64)
| 151 | |
| 152 | // WithMaxAllowedPacket sets the value of the 'max_allowed_packet' system variable. |
| 153 | func WithMaxAllowedPacket(size uint64) EvalCtxOption { |
| 154 | return func(s *evalCtxState) { |
| 155 | s.maxAllowedPacket = size |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | // WithDefaultWeekFormatMode sets the value of the 'default_week_format' system variable. |
| 160 | func WithDefaultWeekFormatMode(mode string) EvalCtxOption { |
no outgoing calls