Skip to content

Commit

Permalink
Disabled table joins for Database.ObjectExistsByDistinctValue function.
Browse files Browse the repository at this point in the history
Closes #28.
  • Loading branch information
hisystems committed Mar 10, 2012
1 parent 7e6aead commit 576ce0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Database/Database.vb
Expand Up @@ -284,8 +284,7 @@ Public Class Database
Dim objSubset As SQL.SQLConditions

With objSelect
Dim objPrimaryTable As SQL.SQLSelectTable = .Tables.Add(objCollection.TableName)
.Tables.Joins = objCollection.TableJoins(objPrimaryTable, .Tables)
.Tables.Add(objCollection.TableName)
.Where.Add(objCollection.DistinctFieldName, SQL.ComparisonOperator.EqualTo, objDistinctValue)
objSubset = objCollection.Subset
If Not objSubset Is Nothing AndAlso Not objSubset.IsEmpty Then
Expand Down

0 comments on commit 576ce0f

Please sign in to comment.