SQLSelect — LeftJoin/RightJoin ByRef type mismatch
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 55/100
Research direction
Open src/ClassModules/SQLSelect.cls around lines 120–143 and inspect the LeftJoin and RightJoin declarations and their calls to AddJoin. Compile or reproduce the strict-compilation case using string literals; done means both methods compile without the ByRef argument type mismatch.
Written by the indexing model from the issue text.
Description
SQLSelect: type LeftJoin/RightJoin params as String
- Component:
src/ClassModules/SQLSelect.cls(around 120–143)
Problem
- Untyped parameters (
VariantByRef) cause mismatches when passed intoAddJoin.
Snippet (actual)
Public Sub LeftJoin(sTable, sAlias, Optional sCondition As String = "")
AddJoin "LEFT OUTER", sTable, sAlias, sCondition
End Sub
Public Sub RightJoin(sTable, sAlias, Optional sCondition As String = "")
AddJoin "RIGHT OUTER", sTable, sAlias, sCondition
End Sub
Expected
Public Sub LeftJoin(sTable As String, sAlias As String, Optional sCondition As String = "")
AddJoin "LEFT OUTER", sTable, sAlias, sCondition
End Sub
Public Sub RightJoin(sTable As String, sAlias As String, Optional sCondition As String = "")
AddJoin "RIGHT OUTER", sTable, sAlias, sCondition
End Sub
Steps to Reproduce
- Call
LeftJoin/RightJoinwith string literals under strict compilation.
Actual
- Compile-time "ByRef argument type mismatch" in some contexts.
Proposed Fix
- Type parameters as
String.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Beakerboy/VBA-SQL-Library
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
Beakerboy/VBA-SQL-Library#68 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
Beakerboy/VBA-SQL-Library#67 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 52/100
Beakerboy/VBA-SQL-Library#66 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
Beakerboy/VBA-SQL-Library#65 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
Beakerboy/VBA-SQL-Library#64 ·
All issues in Beakerboy/VBA-SQL-Library
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenLiberty/open-liberty#35839 ·
-
affects-9.0 found-by-ai may-affects-25.10 may-affects-26.3 may-affects-26.9 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/major sig/execution type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
antlr/grammars-v4#5014 · 1 comment ·