(charset string)
| 221 | } |
| 222 | |
| 223 | func (c *Conn) SetCharset(charset string) error { |
| 224 | if c.charset == charset { |
| 225 | return nil |
| 226 | } |
| 227 | |
| 228 | if _, err := c.exec(fmt.Sprintf("SET NAMES %s", charset)); err != nil { |
| 229 | return errors.Trace(err) |
| 230 | } else { |
| 231 | c.charset = charset |
| 232 | return nil |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | func (c *Conn) FieldList(table string, wildcard string) ([]*Field, error) { |
| 237 | if err := c.writeCommandStrStr(COM_FIELD_LIST, table, wildcard); err != nil { |