Skip to content

Adding MySql to test configuration menu. #650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions ShowBuildMenu.bat
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ echo F. Add a test configuration for PostgreSQL.
echo G. Add a test configuration for Oracle.
echo H. Add a test configuration for SQL Server Compact (x86).
echo I. Add a test configuration for SQL Server Compact (x64).
echo J. Add a test configuration for MySql.
echo.
echo X. Exit to main menu.
echo.

%BUILDTOOL% prompt ABCDEFGHIX
if errorlevel 9 goto main-menu
%BUILDTOOL% prompt ABCDEFGHIJX
if errorlevel 10 goto main-menu
if errorlevel 9 goto test-setup-mysql
if errorlevel 8 goto test-setup-sqlservercex64
if errorlevel 7 goto test-setup-sqlservercex86
if errorlevel 6 goto test-setup-oracle
Expand Down Expand Up @@ -120,6 +122,13 @@ set LIB_FILES=lib\teamcity\postgresql\*.dll
set LIB_FILES2=
goto test-setup-generic

:test-setup-mysql
set CONFIG_NAME=MySql
set PLATFORM=AnyCPU
set LIB_FILES=lib\teamcity\mysql\*.dll
set LIB_FILES2=
goto test-setup-generic

:test-setup-oracle
set CONFIG_NAME=Oracle
set PLATFORM=x86
Expand Down
6 changes: 3 additions & 3 deletions src/NHibernate.Config.Templates/MySql.cfg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ This template was written to work with NHibernate.Test.
Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it
for your own use before compile tests in VisualStudio.
-->
<!-- This is the ByteFX.Data.dll provider for MySql -->
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
<session-factory name="NHibernate.Test">
<property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property>
<property name="connection.connection_string">
Database=test;Data Source=someip;User Id=blah;Password=blah
Database=nhibernate;Data Source=localhost;User Id=nhibernate;Password=;
Protocol=memory;Old Guids=True;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted to match teamcity config by default.

</property>
<property name="dialect">NHibernate.Dialect.MySQLDialect</property>
<property name="dialect">NHibernate.Dialect.MySQL5Dialect</property>
</session-factory>
</hibernate-configuration>