How to escape colon (:) character while executing native SQL queries against an Informix database using NHibernate?
问题 I'm trying to execute a set of native SQL queries against an Informix database, using NHibernate to create the queries. However, NHibernate is set to change the query if it contains colons (they are supposedly reserved characters), and so the query fails. This is a sample of the native SQL query: CREATE PROCEDURE procedure_name() ... SELECT FIRST id :: INTEGER INTO variable ... END PROCEDURE; which NHibernate transforms into this, before executing the query, CREATE PROCEDURE procedure_name()