mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-22 19:15:15 +00:00
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:
parent
9417775d11
commit
42cd240d2a
@ -155,6 +155,10 @@ public IngresDialect() {
|
||||
// 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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user