(ctx context.Context, iprot thrift.TProtocol)
| 1448 | } |
| 1449 | |
| 1450 | func (p *TSExecuteStatementResp) Read(ctx context.Context, iprot thrift.TProtocol) error { |
| 1451 | if _, err := iprot.ReadStructBegin(ctx); err != nil { |
| 1452 | return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) |
| 1453 | } |
| 1454 | |
| 1455 | var issetStatus bool = false; |
| 1456 | |
| 1457 | for { |
| 1458 | _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) |
| 1459 | if err != nil { |
| 1460 | return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err) |
| 1461 | } |
| 1462 | if fieldTypeId == thrift.STOP { break; } |
| 1463 | switch fieldId { |
| 1464 | case 1: |
| 1465 | if fieldTypeId == thrift.STRUCT { |
| 1466 | if err := p.ReadField1(ctx, iprot); err != nil { |
| 1467 | return err |
| 1468 | } |
| 1469 | issetStatus = true |
| 1470 | } else { |
| 1471 | if err := iprot.Skip(ctx, fieldTypeId); err != nil { |
| 1472 | return err |
| 1473 | } |
| 1474 | } |
| 1475 | case 2: |
| 1476 | if fieldTypeId == thrift.I64 { |
| 1477 | if err := p.ReadField2(ctx, iprot); err != nil { |
| 1478 | return err |
| 1479 | } |
| 1480 | } else { |
| 1481 | if err := iprot.Skip(ctx, fieldTypeId); err != nil { |
| 1482 | return err |
| 1483 | } |
| 1484 | } |
| 1485 | case 3: |
| 1486 | if fieldTypeId == thrift.LIST { |
| 1487 | if err := p.ReadField3(ctx, iprot); err != nil { |
| 1488 | return err |
| 1489 | } |
| 1490 | } else { |
| 1491 | if err := iprot.Skip(ctx, fieldTypeId); err != nil { |
| 1492 | return err |
| 1493 | } |
| 1494 | } |
| 1495 | case 4: |
| 1496 | if fieldTypeId == thrift.STRING { |
| 1497 | if err := p.ReadField4(ctx, iprot); err != nil { |
| 1498 | return err |
| 1499 | } |
| 1500 | } else { |
| 1501 | if err := iprot.Skip(ctx, fieldTypeId); err != nil { |
| 1502 | return err |
| 1503 | } |
| 1504 | } |
| 1505 | case 5: |
| 1506 | if fieldTypeId == thrift.BOOL { |
| 1507 | if err := p.ReadField5(ctx, iprot); err != nil { |
nothing calls this directly
no test coverage detected