ENT-1361 Enforce Unicode settings for SQL server (#311) (#321)

* Enforce Unicode settings for SQL server (#311)

* Enforce correct unicode setting in the JDBC Url for SQL server

* Avoid cast/null check

* Fixed wrong string literal and added test to check the literal matches what Hikari expects

* Optimise Imports

* Constant for config tag and minor test improvement.

* Constant and case insensitive check

* Import and Capitalisation

* Missed curly brace
This commit is contained in:
Christian Sailer
2018-01-11 14:29:46 +00:00
committed by GitHub
parent 2921b8044d
commit 0c017fdfec
4 changed files with 49 additions and 1 deletions

View File

@ -65,6 +65,10 @@ class CordaPersistence(
}
}
object DataSourceConfigTag {
const val DATA_SOURCE_URL = "dataSource.url"
}
/**
* Creates an instance of [DatabaseTransaction], with the given transaction isolation level.
*/