...
 
Commits (2)
......@@ -160,6 +160,9 @@ func (db *DBOracle) getSensorL1Data(userCtx context.Context, query string, args
}
out = append(out, rowData)
}
if err := rows.Err(); err != nil {
return nil, err
}
return out, nil
}
......@@ -182,6 +185,8 @@ func (db *DBOracle) getSensorL2Data(userCtx context.Context, query string, args
}
out = append(out, rowData)
}
log.Println("reader: ", out)
if err := rows.Err(); err != nil {
return nil, err
}
return out, nil
}
......@@ -60,5 +60,8 @@ func (db *DBOracle) getLoggers(userCtx context.Context, query string, args ...in
}
out = append(out, rowData)
}
if err := rows.Err(); err != nil {
return nil, err
}
return out, nil
}
......@@ -132,5 +132,8 @@ func (db *DBOracle) getSensors(userCtx context.Context, query string, args ...in
}
out = append(out, rowData)
}
if err := rows.Err(); err != nil {
return nil, err
}
return out, nil
}
......@@ -3,12 +3,9 @@ module dmpapi
go 1.14
require (
github.com/godror/godror v0.13.2
github.com/godror/godror v0.14.0
github.com/gorilla/handlers v1.4.2
github.com/gorilla/mux v1.7.3
github.com/gorilla/mux v1.7.4
github.com/gorilla/schema v1.1.0
github.com/jmoiron/sqlx v1.2.0
// versions 2.14.0 - 2.20.0
// don't work with heteogenous connection ls
gopkg.in/goracle.v2 v2.14.0
)