Beakerboy / Beakerboy/VBA-SQL-Library
SQLSelect — AddHaving passes wrong argument order
- Ngôn ngữ chính
- VBA
- Star
- 90
- Fork
- 18
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
SQLSelect: correct AddHaving argument order
- Component: `src/ClassModules/SQLSelect.cls` (around 71–95)
### Problem
- Calls `SQLCondition.Create` with `(Field, op, Value)` but signature is `(Expression1, Expression2, Operator)`.
### Snippet (actual)
```vb
NewHaving.Create Field, op, Value
```
### Expected
```vb
NewHaving.Create Field, Value, op
```
### Steps to Reproduce
1) Add a HAVING with a non-default operator.
### Actual
- Generates the comparison with swapped operands/operator.
### Proposed Fix
- Pass `(Field, Value, op)` consistently in both branches.
---
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Open src/ClassModules/SQLSelect.cls around lines 71–95 and inspect AddHaving in both branches, starting with the calls to SQLCondition.Create. Reproduce a HAVING using a non-default operator and verify that both branches generate the comparison with the expected argument order.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- sql
- Lĩnh vực
- database
- Loại issue
- Lỗi
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 55/100