in reply to Re^3: fetchall_arrayref hangs with placeholders query with no results
in thread fetchall_arrayref hangs with placeholders query with no results
The untyped variable ? is allowed only in ...
That's a problem of missing type information and does not make select ? completely illegal in all SQL implementations, not even in Sybase ASE.
Try adding type information like I did for PostgreSQL. Actually, just copy my PostgreSQL example and change the connect line to connect to Sybase. I would expect that to work in Sybase ASE.
Should that fail, try to cast the (untyped) placeholder to a type. According to my first google result, SELECT CAST(? AS NUMERIC) ANSWER should do the trick.
Alexander
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: fetchall_arrayref hangs with placeholders query with no results
by mpeppler (Vicar) on Apr 29, 2021 at 12:12 UTC |