[hibernate-commits] [hibernate/hibernate-hql-parser] 914ec7: HQLPARSER-43 Incorrect handling of string literals...

GitHub noreply at github.com
Mon Jun 30 12:31:01 EDT 2014


  Branch: refs/heads/1.0.x
  Home:   https://github.com/hibernate/hibernate-hql-parser
  Commit: 914ec76288ed46d00868e9f36e504ac9993835e7
      https://github.com/hibernate/hibernate-hql-parser/commit/914ec76288ed46d00868e9f36e504ac9993835e7
  Author: Adrian Nistor <anistor at redhat.com>
  Date:   2014-06-26 (Thu, 26 Jun 2014)

  Changed paths:
    M parser/src/main/antlr/org/hibernate/hql/ast/origin/hql/parse/HQLLexer.g
    M parser/src/test/java/org/hibernate/hql/test/tree/ParsingTest.java

  Log Message:
  -----------
  HQLPARSER-43 Incorrect handling of string literals containing single quotes

Single quotes embedded in a string are actually represented by two single quotes.
They are properly recognized by the lexer grammar but the output token should contain a single quote not two.




More information about the hibernate-commits mailing list