Skip to content

Conversation

p1ass
Copy link

@p1ass p1ass commented Sep 4, 2023

Related Issue

#2690

Description

The former parseDriver function only returns PostgreSQL drivers, so it never returns go-sql-driver.
This behavior makes it necessary to specify an option sql_driver whenever we use :copyfrom.

This PR changes the parseDriver function's behavior to return a correct driver according to the specified DB engine.
As a result of this change, we will not need to add the option.

@kyleconroy kyleconroy closed this Sep 5, 2023
@orisano
Copy link
Contributor

orisano commented Sep 7, 2023

@kyleconroy Why did you CLOSE this PR?
I think github.com/go-sql-driver/mysql should be inferred if the engine is mysql even if sql_driver is not explicitly stated.
I think it is just a workaround to specify sql_driver to avoid #2690.

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