We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 876b2d5 commit 5f6d17bCopy full SHA for 5f6d17b
testing/main_test.go
@@ -112,6 +112,9 @@ func startServerWithApplication(
112
func getVersionFromDB(t *testing.T, db *sql.DB) *version.Version {
113
t.Helper()
114
var crdbVersion string
115
+ if _, err := db.Exec(`SET allow_unsafe_internals=true`); err != nil {
116
+ t.Fatal(err)
117
+ }
118
if err := db.QueryRow(
119
`SELECT value FROM crdb_internal.node_build_info where field = 'Version'`,
120
).Scan(&crdbVersion); err != nil {
0 commit comments