in reply to Re^3: perl, mysql: "fetchrow_array failed: fetch() without execute()"
in thread perl, mysql: "fetchrow_array failed: fetch() without execute()"
I hear: " Just adding quotes around the contents of $ID doesn't properly convert it from arbitrary text into an SQL string literal... "
From my experience so far, "prepare" appears to do exactly that! The prepare method is much smarter than I would have thought. This is what amazed me! And I mentioned this in my post. This thing gets a string from Perl and then applies its own "rules".
How "prepare" gets the "real" value of $ID is a mystery to me. But it does! I have several programs that work with this syntax.
As far as de-referencing lists, we are "on the same page.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: perl, mysql: "fetchrow_array failed: fetch() without execute()"
by DStaal (Chaplain) on Dec 29, 2008 at 14:26 UTC | |
|
Re^5: perl, mysql: "fetchrow_array failed: fetch() without execute()"
by runrig (Abbot) on Dec 29, 2008 at 17:01 UTC |