This repository was archived by the owner on Nov 7, 2025. It is now read-only.
Commit 79d2543
authored
Remove
Noticed it at the customer
#1199
Before, for my test request we generated `WHERE 0=0 /* _index=\'Quesma\'
*/`
Now we generate `WHERE true`, which is IMO a style improvement.
(I've grepped a lot and I'm pretty sure it's the only place in code
where we generate this `0=0` thing)
Ideally I'd write a simple transformation to remove unnecessary `true`
from the `WHERE`, but that's more work and I propose to do it in another
PR, not very urgently.
(Actually I'll make Claude 3.7 do it, it should manage, shouldn't it?)0=0 /* _index = table_name /* from generated SQL (#1303)1 parent 8554320 commit 79d2543
File tree
2 files changed
+19
-3
lines changed- quesma
- parsers/elastic_query_dsl
- testdata
2 files changed
+19
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
494 | | - | |
495 | | - | |
| 493 | + | |
| 494 | + | |
496 | 495 | | |
497 | 496 | | |
498 | 497 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2504 | 2504 | | |
2505 | 2505 | | |
2506 | 2506 | | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
2507 | 2524 | | |
2508 | 2525 | | |
2509 | 2526 | | |
| |||
0 commit comments