Skip to content

sql: Return column types in driver.Result #2489

Closed
@bdarnell

Description

@bdarnell

driver.Result contains a list of column names; we should extend this to include type information as well (perhaps a Datum containing a zero value of the appropriate type). This would allow for types to be determined for queries that return no results, or where all returned rows had NULL for a particular column. This also implies enforcing a rule that a column cannot contain a mix of different types (if we aren't doing this already). These changes are necessary to implement the postgres wire protocol.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions