From 42cd240d2aa22d3dc7e8257929ecef23a0cae90b Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Mon, 5 Apr 2010 13:37:52 +0000 Subject: [PATCH] HHH-5003 IngresDialect requires query substitutions for boolean values git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19168 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- core/src/main/java/org/hibernate/dialect/IngresDialect.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/org/hibernate/dialect/IngresDialect.java b/core/src/main/java/org/hibernate/dialect/IngresDialect.java index ec102f441a..6a2e0da3db 100644 --- a/core/src/main/java/org/hibernate/dialect/IngresDialect.java +++ b/core/src/main/java/org/hibernate/dialect/IngresDialect.java @@ -155,6 +155,10 @@ public class IngresDialect extends Dialect { // rows, a single row with one column, or a single row with two columns. // Ingres JDBC Driver returns table and object keys as BINARY values. getDefaultProperties().setProperty(Environment.USE_GET_GENERATED_KEYS, "false"); + // There is no support for a native boolean type that accepts values + // of true, false or unknown. Using the tinyint type requires + // substitions of true and false. + getDefaultProperties().setProperty(Environment.QUERY_SUBSTITUTIONS, "true=1,false=0"); } /**