Avoidance of NPE :)

-----Original Message-----
From: Daryl Stultz [mailto:[email protected]] 
Sent: Saturday, 22 May 2010 1:32 AM
To: [email protected]
Subject: Re: java.lang.IllegalArgumentException: no-named-params

On Fri, May 21, 2010 at 11:22 AM, C N Davies <[email protected]> wrote:

> I don't mean to be pedantic, but
>
> String.format("SELECT id FROM %s WHERE (next_run - now() < interval '2
> minutes')", tablename);
>
> Hmmm:

String.format("SELECT id FROM %s WHERE name like '%s')", "monkey", "doo")

I'm stumped.

-- 
Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
http://www.opentempo.com
mailto:[email protected]

Reply via email to