(cfg *sqltypes.SQLGenerator, other sqltypes.Node)
| 120 | } |
| 121 | |
| 122 | func (g ACLMappingVar) ContainsSQL(cfg *sqltypes.SQLGenerator, other sqltypes.Node) (string, error) { |
| 123 | switch other.UseAs().(type) { |
| 124 | // Only supports containing other strings. |
| 125 | case sqltypes.AstString: |
| 126 | return fmt.Sprintf("%s ? %s", g.SQLString(cfg), other.SQLString(cfg)), nil |
| 127 | default: |
| 128 | return "", xerrors.Errorf("unsupported acl group contains %T", other) |
| 129 | } |
| 130 | } |