| 4258 | } |
| 4259 | |
| 4260 | func (p *TSPrepareReq) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 4261 | if err := oprot.WriteFieldBegin(ctx, "sessionId", thrift.I64, 1); err != nil { |
| 4262 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:sessionId: ", p), err) } |
| 4263 | if err := oprot.WriteI64(ctx, int64(p.SessionId)); err != nil { |
| 4264 | return thrift.PrependError(fmt.Sprintf("%T.sessionId (1) field write error: ", p), err) } |
| 4265 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 4266 | return thrift.PrependError(fmt.Sprintf("%T write field end error 1:sessionId: ", p), err) } |
| 4267 | return err |
| 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 { |