I don't think it's a bug. The remedy, which I refuse to call "a work around", is to use doublequote for identifiers and singlequote for SQL string literals. I must confess that the stackoverflow original inquiry contains way too much noise for me to study it in detail,<sup>a</sup> but just sticking to SQL syntax seems to be enough here. ---- a. If somebody posing a question cannot bother to weed out superfluous aspects of their posed situation, why should anybody else bother to decide what is germane?