diff --git a/jpa/org.eclipse.persistence.jpa.jpql/src/org/eclipse/persistence/jpa/jpql/parser/LocateExpression.java b/jpa/org.eclipse.persistence.jpa.jpql/src/org/eclipse/persistence/jpa/jpql/parser/LocateExpression.java index 1a17c8a0bf9..884442a51b9 100644 --- a/jpa/org.eclipse.persistence.jpa.jpql/src/org/eclipse/persistence/jpa/jpql/parser/LocateExpression.java +++ b/jpa/org.eclipse.persistence.jpa.jpql/src/org/eclipse/persistence/jpa/jpql/parser/LocateExpression.java @@ -21,8 +21,7 @@ * integer. The first argument is the string to be located; the second argument is the string to be * searched; the optional third argument is an integer that represents the string position at which * the search is started (by default, the beginning of the string to be searched). The first - * position in a string is denoted by 1. If the string is not found, 0 is returned. The LOCATE - * function returns the length of the string in characters as an integer. + * position in a string is denoted by 1. If the string is not found, 0 is returned. *

* JPA 1.0, 2.0: *

BNF: expression ::= LOCATE(string_primary, string_primary [, simple_arithmetic_expression])
diff --git a/jpa/org.eclipse.persistence.jpa.jpql/src/org/eclipse/persistence/jpa/jpql/tools/model/query/LocateExpressionStateObject.java b/jpa/org.eclipse.persistence.jpa.jpql/src/org/eclipse/persistence/jpa/jpql/tools/model/query/LocateExpressionStateObject.java index c0cdbbf5ff0..8951ddf1bf5 100644 --- a/jpa/org.eclipse.persistence.jpa.jpql/src/org/eclipse/persistence/jpa/jpql/tools/model/query/LocateExpressionStateObject.java +++ b/jpa/org.eclipse.persistence.jpa.jpql/src/org/eclipse/persistence/jpa/jpql/tools/model/query/LocateExpressionStateObject.java @@ -26,8 +26,7 @@ * was found as an integer. The first argument is the string to be located; the second argument is * the string to be searched; the optional third argument is an integer that represents the string * position at which the search is started (by default, the beginning of the string to be searched). - * The first position in a string is denoted by 1. If the string is not found, 0 is returned. The - * LENGTH function returns the length of the string in characters as an integer. + * The first position in a string is denoted by 1. If the string is not found, 0 is returned. * *
BNF: expression ::= LOCATE(string_primary, string_primary [, simple_arithmetic_expression])

*