Skip to content

Conversation

@raggi
Copy link
Member

@raggi raggi commented Jan 6, 2026

The type is already compatible directly out of the API so there's no need for the cast dance in these calls.

Updates #cleanup

The type is already compatible directly out of the API so there's no
need for the cast dance in these calls.

Updates #cleanup
Copilot AI review requested due to automatic review settings January 6, 2026 21:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes unnecessary unsafe pointer casts from two SQLite column metadata functions. The SQLite C API already returns const char * (mapped to *C.char in cgo), making the intermediate unsafe.Pointer cast redundant.

  • Simplified ColumnDatabaseName to directly pass the C function result to C.GoString
  • Simplified ColumnTableName to directly pass the C function result to C.GoString

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@raggi raggi merged commit 7ab00bd into main Jan 6, 2026
8 checks passed
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