Skip to content

getTableAndConnectionSuggestions() returns nil for unknown schemas #4800

@e-gineer

Description

@e-gineer

Description

Returns nil instead of empty slice when schema not found in tablesBySchema map. Violates Go convention and could cause nil dereference in calling code.

Severity

MEDIUM - Nil pointer potential

Test Reference

TestGetTableAndConnectionSuggestionsEdgeCases in pkg/interactive/interactive_client_test.go:433-453

Impact

Autocomplete may crash on qualified names with unknown schemas.

Suggested Fix

Return empty slice instead of nil.

Related Code

  • pkg/interactive/interactive_client.go:640-651

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleNo recent activity has been detected on this issue/PR and it will be closed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions