Beakerboy / Beakerboy/VBA-SQL-Library

SQLSelect — union array not initialized & name mismatch

Ouverte
#68 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
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

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.