Skip to content

Commit

Permalink
Disable results by row in azuredb query (influxdata#5467)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored and bitcharmer committed Oct 18, 2019
1 parent 9cb362a commit bca07ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugins/inputs/sqlserver/sqlserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ import (
"sync"
"time"

_ "github.com/denisenkom/go-mssqldb" // go-mssqldb initialization
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"

// go-mssqldb initialization
_ "github.com/denisenkom/go-mssqldb"
)

// SQLServer struct
Expand Down Expand Up @@ -90,7 +88,7 @@ func initQueries(s *SQLServer) {

// If this is an AzureDB instance, grab some extra metrics
if s.AzureDB {
queries["AzureDB"] = Query{Script: sqlAzureDB, ResultByRow: true}
queries["AzureDB"] = Query{Script: sqlAzureDB, ResultByRow: false}
}

// Decide if we want to run version 1 or version 2 queries
Expand Down

0 comments on commit bca07ba

Please sign in to comment.