Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MEMBER OF 语法分页时报错 #370

Open
leanderli opened this issue Nov 9, 2023 · 0 comments
Open

MEMBER OF 语法分页时报错 #370

leanderli opened this issue Nov 9, 2023 · 0 comments

Comments

@leanderli
Copy link

WARN [com.bao.myb.ext.plu.inn.PaginationInnerInterceptor] (main) optimize this sql to a count sql has exception, sql:"select f.*
from file_object f
join (
select r.id from (

        select id
        from s_acl_2
        where ? MEMBER OF(accessors_permits -> '$.browsers')
     union all 
        select id
        from s_acl_2
        where ? MEMBER OF(accessors_permits -> '$.browsers')
     union all 
        select id
        from s_acl_2
        where ? MEMBER OF(accessors_permits -> '$.browsers')
     
    ) r group by r.id
    ) s on s.id = f.acl_id", exception:

java.util.concurrent.ExecutionException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "MEMBER" <S_IDENTIFIER>
at line 8, column 21.

Was expecting one of:

"&"
")"
"::"
"<<"
">>"
"CONNECT"
"EMIT"
"EXCEPT"
"GROUP"
"HAVING"
"INTERSECT"
"MINUS"
"START"
"UNION"
"WINDOW"
"["
"^"
"|"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant