From 70d38af42e42016601ad81119b42f7bc381f5f43 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 9 Dec 2012 18:28:08 -0500 Subject: Fixed table reflection for Oracle when accessing a synonym that refers to a DBLINK remote database; while the syntax has been present in the Oracle dialect for some time, up until now it has never been tested. The syntax has been tested against a sample database linking to itself, however there's still some uncertainty as to what should be used for the "owner" when querying the remote database for table information. Currently, the value of "username" from user_db_links is used to match the "owner". [ticket:2619] --- lib/sqlalchemy/testing/plugin/noseplugin.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/testing/plugin') diff --git a/lib/sqlalchemy/testing/plugin/noseplugin.py b/lib/sqlalchemy/testing/plugin/noseplugin.py index c104c4614..81e724bbe 100644 --- a/lib/sqlalchemy/testing/plugin/noseplugin.py +++ b/lib/sqlalchemy/testing/plugin/noseplugin.py @@ -243,6 +243,7 @@ def _requirements(options, file_config): def _post_setup_options(opt, file_config): from sqlalchemy.testing import config config.options = options + config.file_config = file_config @post @@ -366,9 +367,14 @@ class NoseSQLAlchemy(Plugin): if not check.enabled: raise SkipTest( - "'%s' unsupported on DB implementation '%s'" % ( - cls.__name__, config.db.name) + check.reason if check.reason + else + ( + "'%s' unsupported on DB implementation '%s'" % ( + cls.__name__, config.db.name + ) ) + ) if cls.__unsupported_on__: spec = exclusions.db_spec(*cls.__unsupported_on__) -- cgit v1.2.1