Commit cdc66aa
fix: Aggregation and Union __bool__ always returning True (#1234)
The __bool__ methods were returning bool(cursor) instead of
bool(cursor.fetchone()[0]), causing them to always return True
regardless of whether the query result was empty.
Fixes #1234
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent c1b36f0 commit cdc66aa
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1039 | 1039 | | |
1040 | 1040 | | |
1041 | 1041 | | |
1042 | | - | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
1043 | 1047 | | |
1044 | 1048 | | |
1045 | 1049 | | |
| |||
1101 | 1105 | | |
1102 | 1106 | | |
1103 | 1107 | | |
1104 | | - | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
1105 | 1113 | | |
1106 | 1114 | | |
1107 | 1115 | | |
| |||
0 commit comments