(db, intfields_data)
| 628 | @requireCapability(support_index_hint=True) |
| 629 | @pytest.mark.asyncio |
| 630 | async def test_force_index(db, intfields_data): |
| 631 | sql = IntFields.filter(pk=1).only("id").force_index("index_name").sql() |
| 632 | assert sql == "SELECT `id` `id` FROM `intfields` FORCE INDEX (`index_name`) WHERE `id`=%s" |
| 633 | |
| 634 | sql_again = IntFields.filter(pk=1).only("id").force_index("index_name").sql() |
| 635 | assert sql_again == "SELECT `id` `id` FROM `intfields` FORCE INDEX (`index_name`) WHERE `id`=%s" |
| 636 | |
| 637 | |
| 638 | @requireCapability(support_index_hint=True) |
nothing calls this directly
no test coverage detected
searching dependent graphs…