doris icon indicating copy to clipboard operation
doris copied to clipboard

[Enhancement] support offset and limit for prepared statement

Open xy720 opened this issue 2 years ago • 3 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Description

MySQL [(none)]> prepare stmt1 from SELECT * FROM `jlg_project_info_new` WHERE status = 3 AND is_full_tag = 1 AND create_time > 0 ORDER BY create_time DESC LIMIT ?;
ERROR 1105 (HY000): errCode = 2, detailMessage = Syntax error in line 1:
...BY create_time DESC LIMIT ?
                             ^
Encountered: ?
Expected

Currently, we do not support using prepared statement with offset and limit? number.

Solution

No response

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

xy720 avatar Jun 19 '24 03:06 xy720

@eldenmoon Hi, do you have any plans about this issue?

xy720 avatar Jun 19 '24 03:06 xy720

Hello, I want to try this issue, can you assign it to me?

four1er avatar Jul 22 '24 11:07 four1er

We're closing this issue because it hasn't been updated in a while. If you'd like to revive this issue, please reopen it and feel free a maintainer to remove the Stale tag!

github-actions[bot] avatar Sep 12 '25 00:09 github-actions[bot]