Commit 26b30c1
committed
fix(sqlitecgo): update tests for bug gogf#4698 fix - expect success instead of error
After fixing gogf#4698 (AllAndCount/ScanAndCount always use COUNT(1)),
SQLiteCGo tests expecting CodeDbOperationError now pass correctly.
Updated tests:
- Test_Model_AllAndCount: AllAndCount(true) with multiple fields
- Test_Model_ScanAndCount: ScanAndCount with multiple fields
Both now verify correct behavior (COUNT(1) usage) instead of
expecting the old buggy behavior (COUNT syntax error).
Related: gogf#46981 parent 14dc97b commit 26b30c1
1 file changed
Lines changed: 19 additions & 10 deletions
Lines changed: 19 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
660 | | - | |
| 660 | + | |
| 661 | + | |
661 | 662 | | |
662 | 663 | | |
663 | 664 | | |
664 | 665 | | |
665 | 666 | | |
666 | 667 | | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
671 | 676 | | |
672 | 677 | | |
673 | 678 | | |
| |||
1334 | 1339 | | |
1335 | 1340 | | |
1336 | 1341 | | |
1337 | | - | |
| 1342 | + | |
| 1343 | + | |
1338 | 1344 | | |
1339 | 1345 | | |
1340 | 1346 | | |
| |||
1349 | 1355 | | |
1350 | 1356 | | |
1351 | 1357 | | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
1356 | 1365 | | |
1357 | 1366 | | |
1358 | 1367 | | |
| |||
0 commit comments