in reply to Re^2: Can I tell if DBI's quote() was used?
in thread Can I tell if DBI's quote() was used?

Because NULL must already be handled specially. (Then again, giving the problem you have, that might be assuming too much.) OTOH, one needs to know whether the SQL statement is expecting a string literal or a numerical literal to know whether 5 should be 5 or "5". Or maybe 5 will always do, but you still need to special case that.