Skip to content

Commit efc1b69

Browse files
committed
Mysql: Select only tables info on table extraction
1 parent 4946fed commit efc1b69

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Orm/Xtensive.Orm.MySql/Sql.Drivers.MySql/v5_0/Extractor.Queries.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Copyright (C) 2003-2010 Xtensive LLC.
2-
// All rights reserved.
3-
// For conditions of distribution and use, see license.
1+
// Copyright (C) 2011-2022 Xtensive LLC.
2+
// This code is distributed under MIT license terms.
3+
// See the License.txt file in the project root for more information.
44
// Created by: Malisa Ncube
55
// Created: 2011.02.25
66

@@ -20,7 +20,7 @@ protected string GetExtractTablesQuery()
2020
t.table_name,
2121
t.table_type
2222
FROM information_schema.tables t
23-
WHERE t.table_schema {SCHEMA_FILTER}";
23+
WHERE t.table_schema {SCHEMA_FILTER} AND t.table_type = 'BASE TABLE' ";
2424
}
2525

2626
protected string GetExtractTableColumnsQuery()
@@ -46,6 +46,7 @@ FROM information_schema.columns c LEFT OUTER JOIN information_schema.tables t O
4646
WHERE c.table_schema {SCHEMA_FILTER}
4747
AND t.table_schema {SCHEMA_FILTER}
4848
AND c.table_name {TABLE_FILTER}
49+
AND t.table_type = 'BASE TABLE'
4950
ORDER BY
5051
c.table_schema,
5152
c.table_name,

0 commit comments

Comments
 (0)