Skip to content

Commit b3f82a5

Browse files
authored
Merge pull request #2756 from samjewell/patch-1
Update README - fix db name when setting context
2 parents 8937c3e + 0b1f873 commit b3f82a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func main() {
107107

108108
session := memory.NewSession(sql.NewBaseSession(), pro)
109109
ctx := sql.NewContext(context.Background(), sql.WithSession(session))
110-
ctx.SetCurrentDatabase("test")
110+
ctx.SetCurrentDatabase(dbName)
111111

112112
// This variable may be found in the "users_example.go" file. Please refer to that file for a walkthrough on how to
113113
// set up the "mysql" database to allow user creation and user checking when establishing connections. This is set

0 commit comments

Comments
 (0)