openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C N Davies" <...@cndavies.com>
Subject RE: java.lang.IllegalArgumentException: no-named-params
Date Fri, 21 May 2010 17:32:09 GMT
Avoidance of NPE :)


-----Original Message-----
From: Daryl Stultz [mailto:daryl.stultz@opentempo.com] 
Sent: Saturday, 22 May 2010 1:32 AM
To: users@openjpa.apache.org
Subject: Re: java.lang.IllegalArgumentException: no-named-params

On Fri, May 21, 2010 at 11:22 AM, C N Davies <cnd@cndavies.com> 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:daryl.stultz@opentempo.com


Mime
View raw message