Skip to content

Commit 5f6d17b

Browse files
see if I can fix the example orms issue
1 parent 876b2d5 commit 5f6d17b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing/main_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ func startServerWithApplication(
112112
func getVersionFromDB(t *testing.T, db *sql.DB) *version.Version {
113113
t.Helper()
114114
var crdbVersion string
115+
if _, err := db.Exec(`SET allow_unsafe_internals=true`); err != nil {
116+
t.Fatal(err)
117+
}
115118
if err := db.QueryRow(
116119
`SELECT value FROM crdb_internal.node_build_info where field = 'Version'`,
117120
).Scan(&crdbVersion); err != nil {

0 commit comments

Comments
 (0)