Space is not allowed after parameter prefix ':'

后端 未结 3 2212
无人共我
无人共我 2021-02-19 16:03

My problem is i try to insert text that contain char : in my query

I have tried to put double backslash // before char : but still not working.

ABNORMALL         


        
3条回答
  •  孤街浪徒
    2021-02-19 16:36

    Here Hibernate is parsing an insert that contains a hard-coded value that has a colon in it. If you rewrite the insert to use parameters then Hibernate won't see the value as part of the statement.

提交回复
热议问题