Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Oracle and SQL Server docs about running tests locally actualized
- Loading branch information
Showing
3 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
##SQL Server dialect | ||
|
||
### Limitations | ||
|
||
* Batch insert actually inserts rows one by one, because SQLServer do not return generated keys. | ||
* SQL Server looses precision when it stores timestamps. | ||
|
||
### Running tests locally | ||
### Running tests locally with Gradle | ||
* Set `dialect` in gradle.properties to 'sqlserver' | ||
* Run `exposedDialectTestWithDocker` gradle task | ||
|
||
### Running tests locally with Docker | ||
* Run SQL Server locally, e.g. with Docker image with command like | ||
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d microsoft/mssql-server-linux | ||
* Run tests with `-Dexposed.test.dialects=sqlserver` | ||
`docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d microsoft/mssql-server-linux` | ||
or use `docker-compose -f docker-compose-sqlserver.yml up` | ||
|
||
* Run tests with `-Dexposed.test.dialects=sqlserver`, | ||
(optionally you may need to provide `-Dexposed.test.sqlserver.host=_YOUR_DOCKER_HOST_ -exposed.test.sqlserver.port=_SQLSERVER_SERVER_EXPOSED_PORT_`) | ||
|