Skip to content

The SELECT 1 statement does not work on oracle for _check_database checks #202

@saltlightscript

Description

@saltlightscript

Describe the bug
The SELECT 1 statement does not work on oracle

To Reproduce
Steps to reproduce the behavior:

  1. Setup an oracle DB in settings.py
  2. setup watchman as described in installation instructions
  3. Hit the /watchman endpoint or the watchman/dashboard
  4. See error

Expected behavior
The checks for the oracle db should pass as it is online

The above exception was the direct cause of the following exception:

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [Windows]
  • Python version: [3.10]
  • Django-watchman version [1.3.0]

Additional context
Traceback points to
Traceback (most recent call last):
File "C:\Users\mdovel\projects\python\inbranch_bdd\lib\site-packages\watchman\decorators.py", line 29, in wrapped
response = func(*args, **kwargs)
File "C:\Users\mdovel\projects\python\inbranch_bdd\lib\site-packages\watchman\checks.py", line 43, in _check_database
cursor.execute("SELECT 1")

Oracle response when trying to run SELECT 1 without a table is
ORA-00923: FROM keyword not found where expected
00923. 00000 - "FROM keyword not found where expected"
*Cause:
*Action:
Error at Line: 1 Column: 8

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions