in reply to fetchall_arrayref hangs with placeholders query with no results
I think there are two problems - but the most important is that the syntax
isn't valid SQL.select ? from ... where ..
?-style placeholders are used to pass variables into WHERE clauses, not to pass literals into the SELECT statement. I suspect that this is why your query only works if you specify the 4.x protocol level, as that does NOT support placeholders.
I'll still take a look at the issue you opened on GitHub, but I suspect that this is really a client side SQL issue more than anything else.
Michael
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: fetchall_arrayref hangs with placeholders query with no results
by afoken (Chancellor) on Apr 28, 2021 at 16:10 UTC | |
by mpeppler (Vicar) on Apr 29, 2021 at 07:40 UTC | |
by afoken (Chancellor) on Apr 29, 2021 at 10:39 UTC | |
by mpeppler (Vicar) on Apr 29, 2021 at 12:12 UTC |
In Section
Seekers of Perl Wisdom