public class StringSubstring5Method extends Object implements SQLMethod
SUBSTRING(strExpr FROM CAST(numExpr1+1 AS INTEGER))when no end position provided.
SUBSTRING(strExpr FROM CAST(numExpr1+1 AS INTEGER) FOR CAST(numExpr2-numExpr1 AS INTEGER))when end position provided.
Constructor and Description |
---|
StringSubstring5Method() |
Modifier and Type | Method and Description |
---|---|
SQLExpression |
getExpression(SQLStatement stmt,
SQLExpression expr,
List<SQLExpression> args)
Return the expression for this SQL function.
|
public SQLExpression getExpression(SQLStatement stmt, SQLExpression expr, List<SQLExpression> args)
SQLMethod
getExpression
in interface SQLMethod
stmt
- SQLStatement that this expression is forexpr
- The expression that it is invoked onargs
- Arguments passed inCopyright © 2019. All rights reserved.