mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
- Adjust TestWhereLikeWithSlash ignoring slash escaping assert for mysql (due to dependency on no_backslash_escapes setting)
28 lines
795 B
Java
28 lines
795 B
Java
package main;
|
|
|
|
import io.ebean.docker.commands.SqlServerConfig;
|
|
import io.ebean.docker.commands.SqlServerContainer;
|
|
|
|
public class StartSqlServer {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
SqlServerConfig config = new SqlServerConfig("2017-CU4");
|
|
config.setDbName("test_ebean");
|
|
config.setUser("test_ebean");
|
|
|
|
// by default this sqlserver docker collation is case sensitive
|
|
// using MSSQL_COLLATION=Latin1_General_100_BIN2
|
|
//
|
|
// when changing to a CI collation also use
|
|
// ebean.sqlserver.caseSensitiveCollation=false
|
|
// ... such that tests now take that into account
|
|
|
|
//config.setCollation("default");
|
|
//config.setCollation("Latin1_General_100_CI");
|
|
|
|
SqlServerContainer container = new SqlServerContainer(config);
|
|
container.start();
|
|
}
|
|
}
|