Skip to content

Problem trait LoadQuery is not satisfied sub query when implement Pagination #128

Answered by measproem
measproem asked this question in Q&A
Discussion options

You must be logged in to vote

I found my problem may benfit someone same me:
just fix by change to tuple of schema table column

 .select((
   	UserInfo::as_select(), //change here
        crate::schema::tbl_users::nickname,
   	crate::schema::tbl_users::login_id,

   ))

to

  .select((
   (
   	crate::schema::tbl_users::id,
   	crate::schema::tbl_users::user_name,
    ), //become
    crate::schema::tbl_users::nickname,
    crate::schema::tbl_users::login_id,
   ))

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@measproem
Comment options

Answer selected by measproem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #127 on October 31, 2023 09:06.