(ctx context.Context, oprot thrift.TProtocol)
| 2040 | } |
| 2041 | |
| 2042 | func (p *TSExecuteStatementResp) writeField9(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 2043 | if p.IsSetColumnNameIndexMap() { |
| 2044 | if err := oprot.WriteFieldBegin(ctx, "columnNameIndexMap", thrift.MAP, 9); err != nil { |
| 2045 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 9:columnNameIndexMap: ", p), err) } |
| 2046 | if err := oprot.WriteMapBegin(ctx, thrift.STRING, thrift.I32, len(p.ColumnNameIndexMap)); err != nil { |
| 2047 | return thrift.PrependError("error writing map begin: ", err) |
| 2048 | } |
| 2049 | for k, v := range p.ColumnNameIndexMap { |
| 2050 | if err := oprot.WriteString(ctx, string(k)); err != nil { |
| 2051 | return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } |
| 2052 | if err := oprot.WriteI32(ctx, int32(v)); err != nil { |
| 2053 | return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } |
| 2054 | } |
| 2055 | if err := oprot.WriteMapEnd(ctx); err != nil { |
| 2056 | return thrift.PrependError("error writing map end: ", err) |
| 2057 | } |
| 2058 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 2059 | return thrift.PrependError(fmt.Sprintf("%T write field end error 9:columnNameIndexMap: ", p), err) } |
| 2060 | } |
| 2061 | return err |
| 2062 | } |
| 2063 | |
| 2064 | func (p *TSExecuteStatementResp) writeField10(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 2065 | if p.IsSetSgColumns() { |
no test coverage detected