Skip to content

Commit

Permalink
Does not utilise IDatabaseObjcts.TableJoins when counting objects. Cl…
Browse files Browse the repository at this point in the history
…oses #39.
  • Loading branch information
hisystems committed Mar 27, 2012
1 parent 44a87f9 commit 8cc2ffe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Database/Database.vb
Expand Up @@ -716,8 +716,7 @@ Public Class Database
With objSelect
.Where = objCollection.Subset
.Fields.Add(String.Empty, SQL.AggregateFunction.Count)
Dim objPrimaryTable As SQL.SQLSelectTable = .Tables.Add(objCollection.TableName)
.Tables.Joins = objCollection.TableJoins(objPrimaryTable, .Tables)
.Tables.Add(objCollection.TableName)
End With

Using objConnection As New ConnectionScope(Me)
Expand Down

0 comments on commit 8cc2ffe

Please sign in to comment.