Skip to content

Commit 27acba3

Browse files
comment
1 parent 40daa1b commit 27acba3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/sqlquery/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func (c Config) Validate() error {
3939
if c.DataSourceConfig.Host == "" {
4040
return errors.New("'datasource_config.host' or 'datasource' must be specified")
4141
}
42+
// For sqlserver, port is optional
4243
if c.Driver != "sqlserver" {
4344
if c.DataSourceConfig.Port == 0 {
4445
return errors.New("'datasource_config.port' or 'datasource' must be specified")

0 commit comments

Comments
 (0)