diff --git a/.travis.yml b/.travis.yml
index 3169ae02c0a..748f57bd794 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,6 +11,7 @@ env:
- DB=PostgreSQL CONNECTION_STRING="Host=localhost;Port=5432;Username=postgres;Database=nhibernate;Enlist=true;"
- DB=Firebird
- DB=MySQL CONNECTION_STRING="Server=127.0.0.1;Uid=root;Database=nhibernate;Old Guids=True;"
+ - DB=SQLite
matrix:
allow_failures:
- env: DB=MySQL CONNECTION_STRING="Server=127.0.0.1;Uid=root;Database=nhibernate;Old Guids=True;"
diff --git a/appveyor.yml b/appveyor.yml
index c4f82989f1b..073e51b2727 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -9,6 +9,7 @@ environment:
- DB: Firebird
- DB: MySQL
CONNECTION_STRING: Server=127.0.0.1;Uid=root;Pwd=Password12!;Database=nhibernate;Old Guids=True;
+ - DB: SQLite
init:
# Required for having windows endlines in sources zip
- git config --global core.autocrlf true
@@ -54,6 +55,7 @@ before_test:
}
'SqlServer2008' { Start-Service 'MSSQL$SQL2017' }
'SqlServer2012' { Start-Service 'MSSQL$SQL2017' }
+ 'SQLite' { }
}
test_script:
- cmd: powershell -noprofile -command "& ./build.ps1 -TaskList Set-Configuration,Test -properties @{\"Database\" = \"%DB%\";\"ConnectionString\"=\"%CONNECTION_STRING%\"}"
diff --git a/src/NHibernate.Test/NHibernate.Test.csproj b/src/NHibernate.Test/NHibernate.Test.csproj
index 6e6df5e293d..c5ebfaf9284 100644
--- a/src/NHibernate.Test/NHibernate.Test.csproj
+++ b/src/NHibernate.Test/NHibernate.Test.csproj
@@ -5,6 +5,7 @@
$(NhAppTargetFrameworks)
true
$(NoWarn);3001;3002;3003;3005
+ true
NETFX;$(DefineConstants)
@@ -48,6 +49,7 @@
+
@@ -64,14 +66,13 @@
-
-
+
@@ -83,13 +84,6 @@
PreserveNewest
-
-
-
- %(RecursiveDir)%(Filename)%(Extension)
- PreserveNewest
-
-
@@ -97,4 +91,4 @@
-
\ No newline at end of file
+
diff --git a/src/NHibernate.TestDatabaseSetup/TestDatabaseSetup.cs b/src/NHibernate.TestDatabaseSetup/TestDatabaseSetup.cs
index 46944c3abf3..c666e2a8e78 100644
--- a/src/NHibernate.TestDatabaseSetup/TestDatabaseSetup.cs
+++ b/src/NHibernate.TestDatabaseSetup/TestDatabaseSetup.cs
@@ -4,8 +4,8 @@
using System.Data.SqlClient;
#if NETFX
using System.Data.SqlServerCe;
-using System.Data.SQLite;
#endif
+using System.Data.SQLite;
using System.IO;
using FirebirdSql.Data.FirebirdClient;
using NHibernate.Test;
@@ -28,8 +28,8 @@ public class DatabaseSetup
{"NHibernate.Driver.OracleClientDriver", SetupOracle},
{"NHibernate.Driver.OracleManagedDataClientDriver", SetupOracle},
{"NHibernate.Driver.OdbcDriver", SetupSqlServerOdbc},
-#if NETFX
{"NHibernate.Driver.SQLite20Driver", SetupSQLite},
+#if NETFX
{"NHibernate.Driver.SqlServerCeDriver", SetupSqlServerCe}
#endif
};
@@ -190,7 +190,6 @@ RETURNS uuid
}
}
-#if NETFX
private static void SetupSQLite(Cfg.Configuration cfg)
{
var connStr = cfg.Properties[Cfg.Environment.ConnectionString];
@@ -207,7 +206,6 @@ private static void SetupSQLite(Cfg.Configuration cfg)
Console.WriteLine(e);
}
}
-#endif
private static void SetupOracle(Cfg.Configuration cfg)
{
diff --git a/src/NHibernate/Dialect/SQLiteDialect.cs b/src/NHibernate/Dialect/SQLiteDialect.cs
index 802ef14eb6e..e9724cc0dee 100644
--- a/src/NHibernate/Dialect/SQLiteDialect.cs
+++ b/src/NHibernate/Dialect/SQLiteDialect.cs
@@ -142,6 +142,7 @@ protected virtual void RegisterFunctions()
"memo",
"money",
"note",
+ "nothing",
"notnull",
"ntext",
"nvarchar",