Skip to content

Commit 281fa80

Browse files
fredericDelaportehazzik
authored andcommitted
Add MySql to test configuration menu. (#650)
1 parent 3ba9438 commit 281fa80

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

ShowBuildMenu.bat

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ echo F. Add a test configuration for PostgreSQL.
5050
echo G. Add a test configuration for Oracle.
5151
echo H. Add a test configuration for SQL Server Compact (x86).
5252
echo I. Add a test configuration for SQL Server Compact (x64).
53+
echo J. Add a test configuration for MySql.
5354
echo.
5455
echo X. Exit to main menu.
5556
echo.
5657

57-
%BUILDTOOL% prompt ABCDEFGHIX
58-
if errorlevel 9 goto main-menu
58+
%BUILDTOOL% prompt ABCDEFGHIJX
59+
if errorlevel 10 goto main-menu
60+
if errorlevel 9 goto test-setup-mysql
5961
if errorlevel 8 goto test-setup-sqlservercex64
6062
if errorlevel 7 goto test-setup-sqlservercex86
6163
if errorlevel 6 goto test-setup-oracle
@@ -120,6 +122,13 @@ set LIB_FILES=lib\teamcity\postgresql\*.dll
120122
set LIB_FILES2=
121123
goto test-setup-generic
122124

125+
:test-setup-mysql
126+
set CONFIG_NAME=MySql
127+
set PLATFORM=AnyCPU
128+
set LIB_FILES=lib\teamcity\mysql\*.dll
129+
set LIB_FILES2=
130+
goto test-setup-generic
131+
123132
:test-setup-oracle
124133
set CONFIG_NAME=Oracle
125134
set PLATFORM=x86

src/NHibernate.Config.Templates/MySql.cfg.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ This template was written to work with NHibernate.Test.
44
Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it
55
for your own use before compile tests in VisualStudio.
66
-->
7-
<!-- This is the ByteFX.Data.dll provider for MySql -->
87
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
98
<session-factory name="NHibernate.Test">
109
<property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property>
1110
<property name="connection.connection_string">
12-
Database=test;Data Source=someip;User Id=blah;Password=blah
11+
Database=nhibernate;Data Source=localhost;User Id=nhibernate;Password=;
12+
Protocol=memory;Old Guids=True;
1313
</property>
14-
<property name="dialect">NHibernate.Dialect.MySQLDialect</property>
14+
<property name="dialect">NHibernate.Dialect.MySQL5Dialect</property>
1515
</session-factory>
1616
</hibernate-configuration>

0 commit comments

Comments
 (0)