Skip to content

Commit 054db48

Browse files
Fix DB2400 metadata regression
Fix the regression on 5.3.x, without adding proper support for DB2400 metadata Fix #3438
1 parent 4dac4ca commit 054db48

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/NHibernate/Dialect/DB2400Dialect.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using NHibernate.Cfg;
1+
using System;
2+
using System.Data.Common;
3+
using NHibernate.Dialect.Schema;
24
using NHibernate.SqlCommand;
35

46
namespace NHibernate.Dialect
@@ -23,7 +25,13 @@ public class DB2400Dialect : DB2Dialect
2325
{
2426
public DB2400Dialect()
2527
{
26-
DefaultProperties[Environment.ConnectionDriver] = "NHibernate.Driver.DB2400Driver";
28+
DefaultProperties[Cfg.Environment.ConnectionDriver] = "NHibernate.Driver.DB2400Driver";
29+
}
30+
31+
public override IDataBaseSchema GetDataBaseSchema(DbConnection connection)
32+
{
33+
// The DB2 implementation is not valid for DB2400.
34+
throw new NotSupportedException();
2735
}
2836

2937
public override bool SupportsSequences
@@ -61,4 +69,4 @@ public override bool SupportsVariableLimit
6169
get { return false; }
6270
}
6371
}
64-
}
72+
}

0 commit comments

Comments
 (0)