Skip to content


Subversion checkout URL

You can clone with
Download ZIP
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...
commit 18079fdb14aef1ab38b7cf68eed27a7058d01171 1 parent 6b529e8
@oskarb oskarb authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/NHibernate/Dialect/Schema/AbstractDataBaseSchema.cs
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.