Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Ignore sysdiagrams table from a list #49

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 18, 2011
  1. @juokaz
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php
View
3  lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php
@@ -306,7 +306,8 @@ public function getShowDatabasesSQL()
*/
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";
}
/**
Something went wrong with that request. Please try again.