Skip to content

Commit

Permalink
Disabled table joins for Database.ObjectExists function. Closes #27.
Browse files Browse the repository at this point in the history
  • Loading branch information
hisystems committed Mar 10, 2012
1 parent 576ce0f commit 4fab384
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Database/Database.vb
Expand Up @@ -800,10 +800,9 @@ Public Class Database
EnsureKeyDataTypeValid(objKey)

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

0 comments on commit 4fab384

Please sign in to comment.