Skip to content

How to parse POSITION(A IN B) #430

Closed Answered by georgesittas
yuchaofan13 asked this question in Q&A
Discussion options

You must be logged in to vote

I think that there are two options here. You can:

  1. Leave parse_in as is and create a custom function parser for POSITION, then add it to FUNCTION_PARSERS.
  2. Extend the parse_in by adding another case to check if '(' can be matched. If it can't, just parse a single expression.

There are some examples you can follow if you want to do the first one (see latest commits related to trim, substring).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tobymao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants