Beakerboy / Beakerboy/VBA-SQL-Library
SQLSelect — union array not initialized & name mismatch
- Dominant language
- VBA
- Stars
- 90
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
SQLSelect: initialize aUnion and fix name mismatch
- Component: `src/ClassModules/SQLSelect.cls` (declarations and initializer)
### Problem
- Declares `sUnion()` while other code references `aUnion()`; not initialized in `Class_Initialize`.
### Expected
```vb
Private aUnion() As Variant
Private Sub Class_Initialize()
ReDim aJoin(0)
ReDim vFields(0)
ReDim aOrder(0)
ReDim aUnion(0)
' ...
End Sub
```
### Steps to Reproduce
1) Use UNION features without prior array setup.
### Actual
- Append/iteration fails or produces wrong SQL.
### Proposed Fix
- Rename to `aUnion` and `ReDim` in initializer.
---
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.