From 6e87f2e9ace935c5aa5daee659b2d562a1035cf9 Mon Sep 17 00:00:00 2001 From: Toby Wicks Date: Thu, 22 Mar 2012 22:54:52 +1030 Subject: [PATCH] Refactored SQLSelectTables.SQL property so that the table joinsSQL code is not generated twice unnecessarily. Closes #21. --- SQL/Select/SQLSelectTables.vb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SQL/Select/SQLSelectTables.vb b/SQL/Select/SQLSelectTables.vb index 52c2da1..aacb637 100755 --- a/SQL/Select/SQLSelectTables.vb +++ b/SQL/Select/SQLSelectTables.vb @@ -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