File tree 2 files changed +14
-5
lines changed
src/NHibernate.Config.Templates 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.
50
50
echo G. Add a test configuration for Oracle.
51
51
echo H. Add a test configuration for SQL Server Compact (x86).
52
52
echo I. Add a test configuration for SQL Server Compact (x64).
53
+ echo J. Add a test configuration for MySql.
53
54
echo .
54
55
echo X. Exit to main menu.
55
56
echo .
56
57
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
59
61
if errorlevel 8 goto test-setup-sqlservercex64
60
62
if errorlevel 7 goto test-setup-sqlservercex86
61
63
if errorlevel 6 goto test-setup-oracle
@@ -120,6 +122,13 @@ set LIB_FILES=lib\teamcity\postgresql\*.dll
120
122
set LIB_FILES2 =
121
123
goto test-setup-generic
122
124
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
+
123
132
:test-setup-oracle
124
133
set CONFIG_NAME = Oracle
125
134
set 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.
4
4
Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it
5
5
for your own use before compile tests in VisualStudio.
6
6
-->
7
- <!-- This is the ByteFX.Data.dll provider for MySql -->
8
7
<hibernate-configuration xmlns =" urn:nhibernate-configuration-2.2" >
9
8
<session-factory name =" NHibernate.Test" >
10
9
<property name =" connection.driver_class" >NHibernate.Driver.MySqlDataDriver</property >
11
10
<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;
13
13
</property >
14
- <property name =" dialect" >NHibernate.Dialect.MySQLDialect </property >
14
+ <property name =" dialect" >NHibernate.Dialect.MySQL5Dialect </property >
15
15
</session-factory >
16
16
</hibernate-configuration >
You can’t perform that action at this time.
0 commit comments