Skip to content

Commit

Permalink
Change string length check to use codePointCount (#745, #743)
Browse files Browse the repository at this point in the history
SQLServer excluded from test
  • Loading branch information
Tapac committed Jan 9, 2020
1 parent a960350 commit f50fcae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ class DMLTests : DatabaseTestsBase() {
}
val emojis = "\uD83D\uDC68\uD83C\uDFFF\u200D\uD83D\uDC69\uD83C\uDFFF\u200D\uD83D\uDC67\uD83C\uDFFF\u200D\uD83D\uDC66\uD83C\uDFFF"

withTables(listOf(TestDB.H2, TestDB.H2_MYSQL), table) {
withTables(listOf(TestDB.H2, TestDB.H2_MYSQL, TestDB.SQLSERVER), table) {
val isOldMySQL = currentDialectTest is MysqlDialect && db.isVersionCovers(BigDecimal("5.5"))
if (isOldMySQL) {
exec("ALTER TABLE ${table.nameInDatabaseCase()} DEFAULT CHARSET utf8mb4, MODIFY emoji VARCHAR(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;")
Expand Down

0 comments on commit f50fcae

Please sign in to comment.