| 4268 | } |
| 4269 | |
| 4270 | func (p *TSPrepareReq) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 4271 | if err := oprot.WriteFieldBegin(ctx, "sql", thrift.STRING, 2); err != nil { |
| 4272 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:sql: ", p), err) } |
| 4273 | if err := oprot.WriteString(ctx, string(p.Sql)); err != nil { |
| 4274 | return thrift.PrependError(fmt.Sprintf("%T.sql (2) field write error: ", p), err) } |
| 4275 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 4276 | return thrift.PrependError(fmt.Sprintf("%T write field end error 2:sql: ", p), err) } |
| 4277 | return err |
| 4278 | } |
| 4279 | |
| 4280 | func (p *TSPrepareReq) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 4281 | if err := oprot.WriteFieldBegin(ctx, "statementName", thrift.STRING, 3); err != nil { |