diff --git a/testing/main_test.go b/testing/main_test.go index f507895dc7..ed20bd8df8 100644 --- a/testing/main_test.go +++ b/testing/main_test.go @@ -112,6 +112,9 @@ func startServerWithApplication( func getVersionFromDB(t *testing.T, db *sql.DB) *version.Version { t.Helper() var crdbVersion string + if _, err := db.Exec(`SET allow_unsafe_internals=true`); err != nil { + t.Fatal(err) + } if err := db.QueryRow( `SELECT value FROM crdb_internal.node_build_info where field = 'Version'`, ).Scan(&crdbVersion); err != nil {