Skip to content

Commit

Permalink
Update due to internal API change
Browse files Browse the repository at this point in the history
  • Loading branch information
kiendang committed Dec 3, 2024
1 parent f9f99ac commit be72d63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scalasql/src/dialects/MsSqlDialect.scala
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ object MsSqlDialect extends MsSqlDialect {
new SimpleSelect(
Table.metadata(t).vExpr(ref, dialectSelf).asInstanceOf[V[Expr]],
None,
None,
false,
Seq(ref),
Nil,
Expand Down Expand Up @@ -158,6 +159,7 @@ object MsSqlDialect extends MsSqlDialect {
override def newSimpleSelect[Q, R](
expr: Q,
exprPrefix: Option[Context => SqlStr],
exprSuffix: Option[Context => SqlStr],
preserveAll: Boolean,
from: Seq[Context.From],
joins: Seq[Join],
Expand All @@ -167,13 +169,14 @@ object MsSqlDialect extends MsSqlDialect {
implicit qr: Queryable.Row[Q, R],
dialect: scalasql.core.DialectTypeMappers
): scalasql.query.SimpleSelect[Q, R] = {
new SimpleSelect(expr, exprPrefix, preserveAll, from, joins, where, groupBy0)
new SimpleSelect(expr, exprPrefix, exprSuffix, preserveAll, from, joins, where, groupBy0)
}
}

class SimpleSelect[Q, R](
expr: Q,
exprPrefix: Option[Context => SqlStr],
exprSuffix: Option[Context => SqlStr],
preserveAll: Boolean,
from: Seq[Context.From],
joins: Seq[Join],
Expand All @@ -183,6 +186,7 @@ object MsSqlDialect extends MsSqlDialect {
extends scalasql.query.SimpleSelect(
expr,
exprPrefix,
exprSuffix,
preserveAll,
from,
joins,
Expand Down

0 comments on commit be72d63

Please sign in to comment.