Skip to content
Snippets Groups Projects
Commit 50dfe627 authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

[BUGFIX] PlSqlJob fixed.

The connector check was done to early.
parent e622af4f
No related branches found
No related tags found
No related merge requests found
...@@ -349,9 +349,9 @@ class PlSqlQueryJob(QueryJob): ...@@ -349,9 +349,9 @@ class PlSqlQueryJob(QueryJob):
'''The default description of this job.''' '''The default description of this job.'''
def __init__(self, connector, *args, **kwargs): def __init__(self, connector, *args, **kwargs):
if not isinstance(connector, SqlQueryLanguageSupportMixin):
raise ConfigurationException('plsqlquery can only be executed on oracle or postgresql connections.')
super(PlSqlQueryJob, self).__init__(connector = connector, *args, **kwargs) super(PlSqlQueryJob, self).__init__(connector = connector, *args, **kwargs)
if not isinstance(self.connector, SqlQueryLanguageSupportMixin):
raise ConfigurationException('plsqlquery can only be executed on oracle or postgresql connections.')
def _execute(self): def _execute(self):
self.connector.execute_plsql(self.sql) self.connector.execute_plsql(self.sql)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment