SQLSubselect — Property Get returns wrong variable

Open
#65 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
sql, visualbasic
Domain
databases

Research direction

Open src/ClassModules/SQLSubselect.cls and inspect the SelectAs property getter around lines 0–39, comparing it with the backing fields used by the class. Verify that reading SelectAs from an instance returns the stored alias value without an empty result or compile/runtime error.

Written by the indexing model from the issue text.

Description

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.

Dominant language
VBA
Stars
90
Forks
18
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Beakerboy/VBA-SQL-Library

All issues in Beakerboy/VBA-SQL-Library

Similar issues

More Databases issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.