Commit eab4e5a0 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #49 from juokaz/DBAL-114

Ignore sysdiagrams table from a list
parents cdb24c89 4b85b302
......@@ -306,7 +306,8 @@ class MsSqlPlatform extends AbstractPlatform
*/
public function getListTablesSQL()
{
return "SELECT name FROM sysobjects WHERE type = 'U' ORDER BY name";
// "sysdiagrams" table must be ignored as it's internal SQL Server table for Database Diagrams
return "SELECT name FROM sysobjects WHERE type = 'U' AND name != 'sysdiagrams' ORDER BY name";
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment