Raw 'SELECT 1' causes problems with Oracle

Bug #389135 reported by Jason Baker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Storm
New
Undecided
Unassigned

Bug Description

In /tests/store/base.py, there are several tests that execute a raw SELECT 1 against the backend it's testing. Unfortunately, this isn't a valid Oracle query (it should be SELECT 1 FROM DUAL). I've put together a patch that will create a DUMMY_SELECT attribute on the StoreTest class that is set to SELECT 1. This way, the child class may override it.

Revision history for this message
Jason Baker (jbaker) wrote :
Revision history for this message
James Henstridge (jamesh) wrote :

Given that store.execute() will hit the compile() infrastructure, perhaps it would be better to adjust the tests to pass Select(1) in these cases, and adjust the Oracle compile code to add "FROM DUAL" to Select expressions with no tables?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.