(dataSet *client.SessionDataSet, columnName string)
| 425 | } |
| 426 | |
| 427 | func getValueFromDataSet(dataSet *client.SessionDataSet, columnName string) interface{} { |
| 428 | if isNull, err := dataSet.IsNull(columnName); err != nil { |
| 429 | log.Fatal(err) |
| 430 | } else if isNull { |
| 431 | return nil |
| 432 | } |
| 433 | v, err := dataSet.GetString(columnName) |
| 434 | if err != nil { |
| 435 | log.Fatal(err) |
| 436 | } |
| 437 | return v |
| 438 | } |
| 439 | |
| 440 | func getValueFromDataSetByIndex(dataSet *client.SessionDataSet, columnIndex int32) interface{} { |
| 441 | if isNull, err := dataSet.IsNullByIndex(columnIndex); err != nil { |
no test coverage detected
searching dependent graphs…