VBA-SQL-Library icon indicating copy to clipboard operation
VBA-SQL-Library copied to clipboard

SQLSubselect — Property Get returns wrong variable

Open Ben-Gonzalez-97 opened this issue 3 months ago • 0 comments

SQLSubselect: SelectAs getter returns wrong variable

  • Component: src/ClassModules/SQLSubselect.cls (around 0–39)

Problem

  • Getter returns an undefined identifier instead of the backing field.

Snippet (actual)

Property Get SelectAs() As String
    SelectAs = aAs
End Property

Expected

Property Get SelectAs() As String
    SelectAs = sAs
End Property

Steps to Reproduce

  1. Read SelectAs from an instance.

Actual

  • Returns empty/undefined; potential compile/runtime error.

Proposed Fix

  • Return sAs.

Ben-Gonzalez-97 avatar Oct 16 '25 13:10 Ben-Gonzalez-97