googleapis/mcp-toolbox · error
unable to retrieve rows column name: %w
Error message
unable to retrieve rows column name: %w
What it means
Error "unable to retrieve rows column name: %w" thrown in googleapis/mcp-toolbox.
Source
Thrown at internal/sources/oceanbase/oceanbase.go:114
}
func (s *Source) ToConfig() sources.SourceConfig {
return s.Config
}
func (s *Source) OceanBasePool() *sql.DB {
return s.Pool
}
func (s *Source) RunSQL(ctx context.Context, statement string, params []any) (any, error) {
results, err := s.OceanBasePool().QueryContext(ctx, statement, params...)
if err != nil {
return nil, fmt.Errorf("unable to execute query: %w", err)
}
cols, err := results.Columns()
if err != nil {
return nil, fmt.Errorf("unable to retrieve rows column name: %w", err)
}
// create an array of values for each column, which can be re-used to scan each row
rawValues := make([]any, len(cols))
values := make([]any, len(cols))
for i := range rawValues {
values[i] = &rawValues[i]
}
defer results.Close()
colTypes, err := results.ColumnTypes()
if err != nil {
return nil, fmt.Errorf("unable to get column types: %w", err)
}
out := []any{}
for results.Next() {
err := results.Scan(values...)View on GitHub (pinned to 8cc6e09de2)
When it happens
Trigger: Thrown at internal/sources/oceanbase/oceanbase.go:114 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of googleapis/mcp-toolbox@8cc6e09de2 (2026-09-05).
Data as JSON: /api/errors/28aa4898ab072f4d.
Report an issue: GitHub.