in reply to Re: fetchall_arrayref hangs with placeholders query with no results
in thread fetchall_arrayref hangs with placeholders query with no results
Maybe having no table confuses the system?
It should not. Executing a table-less query like
SELECT 42 AS result
works on most SQL databases. The remaining ones, Oracle being probably the most known example, always expects a dummy table or view, but also always provides that dummy table or view specifically for this purpose. Its name is DUAL on Oracle, and you need to use
SELECT 42 AS result FROM dual
on Oracle. Some databases also provide a table or view named DUAL just for Oracle compatibility.
See Wikipedia: DUAL table for a nice overview.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: fetchall_arrayref hangs with placeholders query with no results
by erix (Prior) on Apr 18, 2021 at 11:18 UTC | |
by TieUpYourCamel (Scribe) on Apr 21, 2021 at 15:21 UTC |