org.hibernate.QueryException: Space is not allowed after parameter prefix ':' 'select * from a where a.b = 'asdf \' asdf''

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • hibernate + mysql + load data in file
    via Stack Overflow by user732362
    ,
    • org.hibernate.QueryException: Space is not allowed after parameter prefix ':' 'select * from a where a.b = 'asdf \' asdf'' at org.hibernate.engine.query.ParameterParser.parse(ParameterParser.java:92) at org.hibernate.engine.query.ParamLocationRecognizer.parseLocations(ParamLocationRecognizer.java:75) at org.hibernate.engine.query.QueryPlanCache.buildNativeSQLParameterMetadata(QueryPlanCache.java:149) at org.hibernate.engine.query.QueryPlanCache.getSQLParameterMetadata(QueryPlanCache.java:79) at org.hibernate.impl.AbstractSessionImpl.createSQLQuery(AbstractSessionImpl.java:146) at org.hibernate.impl.SessionImpl.createSQLQuery(SessionImpl.java:1656)
    No Bugmate found.