persistence@glassfish.java.net

[Fwd: [Issue 928] Positional parameters for NamedNativeQuery]

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Tue, 22 Aug 2006 13:04:17 -0700

Linda, Mike,

I thought that the spec doesn't require parsing of a native query,
but I can't find such statement.

Or does this statement refer to the Query API rather than the SQL,
and mean something to the extent that setParameter(n, value) just passes
it through to the prepared statement?

thanks,
-marina

-------- Original Message --------
From: mareks_at_dev.java.net
Subject: [Issue 928] Positional parameters for NamedNativeQuery
To: issues_at_glassfish.dev.java.net

https://glassfish.dev.java.net/issues/show_bug.cgi?id=928






------- Additional comments from mareks_at_dev.java.net Tue Aug 22 19:48:33 +0000
2006 -------
3.6.3 Named Parameters
A named parameter is an identifier that is prefixed by the ":" symbol. Named
parameters are case-sen-
sitive.
Named parameters follow the rules for identifiers defined in Section4.4.1. The
use of named parameters
applies to the JavaPersistence query language, and is not defined for native
queries. Only positional
parameter binding may be portably used for native queries.

=========================================================

page 69; ejb-3_0-fr-spec-persistence.pdf

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: issues-help_at_glassfish.dev.java.net