Skip to content

Commit

Permalink
Support MySQL 5 dialect (#2704)
Browse files Browse the repository at this point in the history
* Support MySQL 5 dialect

* Introduce MySQL5Dialect type

* Tests for MySQL5Dialect
  • Loading branch information
mahe-ymc authored Jul 4, 2023
1 parent 10d3b82 commit eb44c4b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/scala/io/getquill/MySQLDialect.scala
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package io.getquill

import io.getquill.ast.{Ast, _}
import io.getquill.context.{CanInsertReturningWithMultiValues, CanInsertWithMultiValues, CanReturnField}
import io.getquill.context.sql.OrderByCriteria
import io.getquill.context.sql.idiom.SqlIdiom.ActionTableAliasBehavior
import io.getquill.context.sql.idiom.{NoConcatSupport, QuestionMarkBindVariables, SqlIdiom}
import io.getquill.context.sql.OrderByCriteria
import io.getquill.context.{CanInsertReturningWithMultiValues, CanInsertWithMultiValues, CanReturnField}
import io.getquill.idiom.StatementInterpolator._
import io.getquill.idiom.{Statement, Token}
import io.getquill.util.Messages.fail
Expand Down Expand Up @@ -108,3 +108,9 @@ trait MySQLDialect
}

object MySQLDialect extends MySQLDialect

trait MySQL5Dialect extends MySQLDialect {
override def useActionTableAliasAs: ActionTableAliasBehavior = ActionTableAliasBehavior.Hide
}

object MySQL5Dialect extends MySQL5Dialect

0 comments on commit eb44c4b

Please sign in to comment.