File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
src/NHibernate.Config.Templates Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,14 @@ echo F. Add a test configuration for PostgreSQL.
5050echo G. Add a test configuration for Oracle.
5151echo H. Add a test configuration for SQL Server Compact (x86).
5252echo I. Add a test configuration for SQL Server Compact (x64).
53+ echo J. Add a test configuration for MySql.
5354echo .
5455echo X. Exit to main menu.
5556echo .
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
5961if errorlevel 8 goto test-setup-sqlservercex64
6062if errorlevel 7 goto test-setup-sqlservercex86
6163if errorlevel 6 goto test-setup-oracle
@@ -120,6 +122,13 @@ set LIB_FILES=lib\teamcity\postgresql\*.dll
120122set LIB_FILES2 =
121123goto 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
124133set CONFIG_NAME = Oracle
125134set PLATFORM = x86
Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ This template was written to work with NHibernate.Test.
44Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it
55for 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 >
You can’t perform that action at this time.
0 commit comments