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
This commit is contained in:
Strong Liu 2010-04-05 13:37:52 +00:00
parent 9417775d11
commit 42cd240d2a
1 changed files with 4 additions and 0 deletions

View File

@ -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");
}
/**