Browse files

AbstractDataBaseSchema.cs: Don't specify more restrictions than neces…

…sary in GetTables() to avoid failure on ODBC (NH-3064). (This is probably dependent on the specific ODBC driver used, but this fixes it for MSSQL. More overrides can be added as needed.)
  • Loading branch information...
1 parent 6b529e8 commit 18079fdb14aef1ab38b7cf68eed27a7058d01171 @oskarb oskarb committed Feb 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/NHibernate/Dialect/Schema/AbstractDataBaseSchema.cs
@@ -55,7 +55,7 @@ public virtual bool StoresLowerCaseIdentifiers
public virtual DataTable GetTables(string catalog, string schemaPattern, string tableNamePattern, string[] types)
- var restrictions = new[] {catalog, schemaPattern, tableNamePattern, null};
+ var restrictions = new[] { catalog, schemaPattern, tableNamePattern };
return connection.GetSchema("Tables", restrictions);

0 comments on commit 18079fd

Please sign in to comment.