in reply to Can I tell if DBI's quote() was used?
No, it's not possible. Specifically,
For example, foo bar clearly needs quoting, but "foo bar" could be foo bar already quoted or "foo bar" that hasn't been quoted.
quote should only be used where a string literal is expected, so NULL is indeed a special case. Then again, it should *already* be a special case cause string literals are usually used with "=" and NULL is usually used with "IS". See the "NULL Values" subsection of the "Placeholders and Bind Values" section of the DBI docs.
You should be more worried about numbers than about NULL.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can I tell if DBI's quote() was used?
by kyle (Abbot) on Apr 06, 2008 at 19:44 UTC | |
by ikegami (Patriarch) on Apr 07, 2008 at 03:09 UTC |