Loading
Commits on Source 14
-
Angus Dippenaar authored
-
Angus Dippenaar authored
Add connection hook See merge request cznic/sqlite!63
-
cznic authored
-
cznic authored
-
cznic authored
-
cznic authored
-
cznic authored
-
cznic authored
-
cznic authored
-
Romain LE DISEZ authored
Passing an already canceled/expired context to QueryContext/ExecContext would return empty results without error because interruptOnDone would immediately set the "done" flag to one so the calling function (query or exec) would not enter the for loop doing the meaningful work. Similarly, if the context is expired/canceled at the "wrong time", the same behavior could happen. This patch first check the context is still valid when entering the function (before launching interruptOnDone), then if the funxtion is about to return no values and no error, it checks if the "done" flag is set and return the context error if it makes sense.
-
Romain LE DISEZ authored
Handle context expired/canceled in Query/ExecContext See merge request cznic/sqlite!65
-
Romain LE DISEZ authored
-
Romain LE DISEZ authored
While the query had succeeded, the context can expire right after. In this situation, iterating the rows will fail. The test need to check for sql.Rows.Err() too. Also, don't forget to close sql.Rows when done to avoid memory leak.
-
Romain LE DISEZ authored
fix error handling in test "QueryContext with context expiring" See merge request cznic/sqlite!66