Beakerboy / Beakerboy/VBA-SQL-Library

SQLSelect — LeftJoin/RightJoin ByRef type mismatch

オープン
#62 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
VBA
スター
90
フォーク
18
PR マージ指標
30日以内にマージされた PR はありません

説明

SQLSelect: type LeftJoin/RightJoin params as String
- Component: `src/ClassModules/SQLSelect.cls` (around 120–143)

### Problem
- Untyped parameters (`Variant` ByRef) cause mismatches when passed into `AddJoin`.

### Snippet (actual)
```vb
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
```vb
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
1) Call `LeftJoin`/`RightJoin` with string literals under strict compilation.

### Actual
- Compile-time "ByRef argument type mismatch" in some contexts.

### Proposed Fix
- Type parameters as `String`.

---

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
sql
領域
databases
issue の種類
バグ
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。