Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for aggregate function expressions. Closes #50.
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
' ___________________________________________________ | ||
' | ||
' © Hi-Integrity Systems 2012. All rights reserved. | ||
' www.hisystems.com.au - Toby Wicks | ||
' ___________________________________________________ | ||
' | ||
|
||
Option Strict On | ||
Option Explicit On | ||
|
||
Namespace SQL | ||
|
||
Public Class SQLAggregateExpression | ||
Inherits SQLFunctionExpression | ||
|
||
Public Sub New(ByVal aggregate As AggregateFunction, ByVal fieldName As String) | ||
|
||
Me.New(aggregate, New SQLFieldExpression(fieldName)) | ||
|
||
End Sub | ||
|
||
Public Sub New(ByVal aggregate As AggregateFunction, ByVal expression As SQLExpression) | ||
|
||
MyBase.New(Misc.SQLConvertAggregate(aggregate), expression) | ||
|
||
End Sub | ||
|
||
End Class | ||
|
||
End Namespace | ||
|
||
|