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 Mathieu Lecarme committed Apr 17, 2020
1 parent db276cb commit 15badda
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 15badda

Please sign in to comment.