Beakerboy / Beakerboy/VBA-SQL-Library
SQLSelect — union array not initialized & name mismatch
- Langage dominant
- VBA
- Étoiles
- 90
- Forks
- 18
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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.
---
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Read src/ClassModules/SQLSelect.cls, focusing on the declarations and Class_Initialize, then trace the UNION append and iteration paths. Done means the declared array name matches its references, it is initialized before UNION use, and the reproduction steps no longer fail or produce incorrect SQL.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- visualbasic
- Domaine
- databases
- Type d'issue
- Bug
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 55/100