File tree Expand file tree Collapse file tree 1 file changed +0
-35
lines changed
Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -126,41 +126,6 @@ extension SQLSelection {
126126 }
127127 }
128128
129- /// Returns the SQL that feeds the argument of the `COUNT` function.
130- ///
131- /// For example:
132- ///
133- /// COUNT(*)
134- /// COUNT(id)
135- /// ^---- countedSQL
136- ///
137- /// - parameter context: An SQL generation context which accepts
138- /// statement arguments.
139- func countedSQL( _ context: SQLGenerationContext ) throws -> String {
140- switch impl {
141- case . allColumns:
142- return " * "
143-
144- case let . qualifiedAllColumns( alias) :
145- if context. qualifier ( for: alias) != nil {
146- // SELECT COUNT(t.*) is invalid SQL
147- fatalError ( " Not implemented, or invalid query " )
148- }
149- return " * "
150-
151- case let . expression( expression) ,
152- let . aliasedExpression( expression, _) :
153- return try expression. sql ( context)
154-
155- case . literal:
156- fatalError ( """
157- Selection literals can't be counted. \
158- To resolve this error, select one or several literal expressions instead. \
159- See SQL.sqlExpression.
160- """ )
161- }
162- }
163-
164129 /// Returns the SQL that feeds the selection of a `SELECT` statement.
165130 ///
166131 /// For example:
You can’t perform that action at this time.
0 commit comments