Skip to content

Stop SQLite results being used before being fetched#1709

Merged
asherkin merged 1 commit intomasterfrom
sqlite-fetch
Feb 6, 2022
Merged

Stop SQLite results being used before being fetched#1709
asherkin merged 1 commit intomasterfrom
sqlite-fetch

Conversation

@asherkin
Copy link
Member

@asherkin asherkin commented Feb 6, 2022

The DB API requires FetchRow to be called before accessing any values
from a row, but the SQLite driver did not enforce that requirement and
alowed accessing the first row immediately. A plugin developer hit this
when developing against SQLite locally but using MySQL in production,
where the API misuse threw an error as expected.

Resolves #1691

The DB API requires FetchRow to be called before accessing any values
from a row, but the SQLite driver did not enforce that requirement and
alowed accessing the first row immediately. A plugin developer hit this
when developing against SQLite locally but using MySQL in production,
where the API misuse threw an error as expected.

Resolves #1691
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQLite threaded queries already have the first row fetched

2 participants