Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

"PRAGMA journal_mode" yields no results #337

Closed
achocron opened this issue Mar 22, 2017 · 1 comment
Closed

"PRAGMA journal_mode" yields no results #337

achocron opened this issue Mar 22, 2017 · 1 comment

Comments

@achocron
Copy link

In a UWP application using package version 1.1.0 and sqlite 3.12.3, I am unable to get or set the journal mode. Checking the journal mode with PRAGMA journal_mode returns null, and setting it also returns null.

@bricelam
Copy link
Contributor

bricelam commented Apr 4, 2017

I confirmed that sqlite3_stmt_readonly returns false for this statement. While I knew we'd get false positives from this method, I didn't anticipate any false negatives like this. The heuristic is used to differentiate between statements that return empty results and statements that don't return results. Since we know we have results, we can bypass the heuristic for these statements.

@bricelam bricelam removed this from the 2.0.0 milestone Apr 4, 2017
@ajcvickers ajcvickers added this to the 2.0.0 milestone Apr 5, 2017
@bricelam bricelam changed the title UWP unexpected PRAGMA behavior "PRAGMA journal_mode" yields no results Apr 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants