Fixed EZP-20762: SQL syntax errors in Legacy Gateway of XmlTextStorage with PostgreSQL