Skip to content

Commit

Permalink
Refactored SQLSelectTables.SQL property so that the table joinsSQL co…
Browse files Browse the repository at this point in the history
…de is not generated twice unnecessarily. Closes #21.
  • Loading branch information
hisystems committed Mar 22, 2012
1 parent fb0d48b commit 6e87f2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SQL/Select/SQLSelectTables.vb
Expand Up @@ -172,10 +172,11 @@ Namespace SQL
Next

If Not pobjJoins Is Nothing Then
If pobjJoins.SQL(eConnectionType) <> String.Empty And strSQL <> String.Empty Then
Dim strJoinsSQL As String = pobjJoins.SQL(eConnectionType)
If strJoinsSQL <> String.Empty And strSQL <> String.Empty Then
strSQL &= " "
End If
strSQL &= pobjJoins.SQL(eConnectionType)
strSQL &= strJoinsSQL
End If

Return strSQL
Expand Down

0 comments on commit 6e87f2e

Please sign in to comment.