-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sqlite: don't return persistent queries to two callers
This test case used to fail with: === RUN TestPrepareReuse sqlite_test.go:1129: rows2: num=2, want 1 --- FAIL: TestPrepareReuse (0.00s) This indicates that we were erroneously returning the same "persisted" query twice, which resulted in the two sets of Rows returned affecting each other. Instead, only persist queries in c.stmts on Close, after they've been reset and are ready for re-use. Updates #73 Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
- Loading branch information
Showing
2 changed files
with
93 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters