solomax commented on code in PR #331:
URL: https://github.com/apache/openjpa/pull/331#discussion_r4747981606


##########
openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/exps/StringFunction.java:
##########
@@ -52,6 +53,20 @@ public Val getValue() {
         return _val;
     }
 
+    /**
+     * Return the column of the operand at the given index, or null if the
+     * operand is not a path or has no column at that index.
+     */
+    protected Column getColumn(ExpState state, int index) {
+        if (_val instanceof PCPath) {

Review Comment:
   ```suggestion
           if (_val instanceof PCPath pathVal) {
   ```
   
   ? :)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to