Commit ea3715a1 authored by Steve Müller's avatar Steve Müller

Merge pull request #728 from healsdata/patch-1

Ignore pseudo-system objects in table list
parents 40fd0047 b29f8d99
......@@ -813,7 +813,8 @@ class SQLServerPlatform extends AbstractPlatform
public function getListTablesSQL()
{
// "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";
// Category 2 must be ignored as it is "MS SQL Server 'pseudo-system' object[s]" for replication
return "SELECT name FROM sysobjects WHERE type = 'U' AND name != 'sysdiagrams' AND category != 2 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