Skip to content

Commit

Permalink
Merge pull request #2756 from samjewell/patch-1
Browse files Browse the repository at this point in the history
Update README - fix db name when setting context
  • Loading branch information
zachmu authored Nov 26, 2024
2 parents 8937c3e + 0b1f873 commit b3f82a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func main() {

session := memory.NewSession(sql.NewBaseSession(), pro)
ctx := sql.NewContext(context.Background(), sql.WithSession(session))
ctx.SetCurrentDatabase("test")
ctx.SetCurrentDatabase(dbName)

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

0 comments on commit b3f82a5

Please sign in to comment.