Skip to content

Commit 520e301

Browse files
Suman DeSuman De
authored andcommitted
docs: clarify the function need
1 parent ece0a7e commit 520e301

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/codegen/golang/driver.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ func parseDriver(sqlPackage string) opts.SQLDriver {
1515
}
1616
}
1717

18+
// custom packages based on pgx/v5 (e.g., YugabyteDB smart drivers) should return
19+
// only the original driver when determining columnType, refer to the postgresType func.
20+
1821
func parseDriverPGType(sqlPackage string) opts.SQLDriver {
1922
switch sqlPackage {
2023
case opts.SQLPackagePGXV4:

0 commit comments

Comments
 (0)