Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean Parameter Support #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

omair2084
Copy link
Contributor

@omair2084 omair2084 commented Feb 22, 2018

I have tested this to work fine on Oracle 11 XE.

Here is the issue:
The boolean parameter causes an error.

>>> parameters = {'job_action': '/usr/bin/python', 'number_of_arguments': 2, 'job_type': 'EXECUTABLE', 'job_name': 'test'}
>>> cur.callproc(name="DBMS_SCHEDULER.create_job",keywordParameters=parameters)
['/usr/bin/python', 2, 'EXECUTABLE', 'test']

If we have the boolean value

>>> parameters = {'job_action': '/usr/bin/python', 'number_of_arguments': 2, 'job_type': 'EXECUTABLE', 'auto_drop':False, 'job_name': 'test'}
>>> cur.callproc(name="DBMS_SCHEDULER.create_job",keywordParameters=parameters)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
cx_Oracle.DatabaseError: ORA-03115: unsupported network datatype or representation

Since it works fine without the auto_drop value, I would suggest to remove it.

I have tested this to work fine on the 11 XE.  The boolean parameter causes an error.
@quentinhardy
Copy link
Owner

I will check that as soon as possible.

@quentinhardy
Copy link
Owner

Hi,

Can you create an option in main module (e.g. --auto-drop) ?
With this option, the user could manage this auto_drop parameter from command line.

If you can't, I will create this option in this DbmsScheduler module as soon as possible.

Keep me up-to-date,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants