Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: always return database table columns #429

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

njhale
Copy link
Member

@njhale njhale commented Feb 10, 2025

When there are no rows in a table, the list_database_table_rows tool doesn't return table column names.

To fix this, use an explicit query to fetch the table columns instead of relying on sqlite3's -header option.

Addresses obot-platform/obot#1702

When there are no rows in a table, the `list_database_table_rows` tool
doesn't return table column names. To fix this, use an explicit query
to fetch the table columns instead of relying on sqlite3's `-header`
option.

Addresses obot-platform/obot#1702

Signed-off-by: Nick Hale <[email protected]>
@njhale njhale merged commit 80a3fa7 into obot-platform:main Feb 10, 2025
1 check passed
@njhale njhale deleted the fix/database-no-rows-missing-cols branch February 10, 2025 20:53
@cjellick cjellick mentioned this pull request Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants