Skip to content

Conversation

@adamziel
Copy link
Collaborator

@adamziel adamziel commented Apr 11, 2024

Adds support for a legacy MySQL syntax where SELECT queries can contain FORCE INDEX keywords. It forces the database to use an index when it otherwise wouldn't. With this PR, the SQLite query translator will ignore that part of the query.

Closes #45

Testing instructions

Confirm the unit tests pass:

php ./vendor/bin/phpunit -c ./phpunit.xml.dist

Adds support for a legacy MySQL syntax where SELECT queries can contain
FORCE INDEX keywords. It used to force the database to use an index when
it otherwise wouldn't, but now it is just ignored. With this PR, the SQLite
query translator will also ignore those keywords.

Closes #45

 ## Testing instructions

Confirm the unit tests pass:

```
php ./vendor/bin/phpunit -c ./phpunit.xml.dist
```
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.

Support FORCE INDEX

2 participants