mirror of https://github.com/apache/openjpa.git
OPENJPA-811 - Committ on behalf of Pinaki Poddar and Dinkar Rao.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723088 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c28c7830d5
commit
ef7f18f30c
|
@ -51,6 +51,7 @@ import org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement;
|
||||||
import org.apache.openjpa.lib.util.J2DoPrivHelper;
|
import org.apache.openjpa.lib.util.J2DoPrivHelper;
|
||||||
import org.apache.openjpa.lib.util.Localizer;
|
import org.apache.openjpa.lib.util.Localizer;
|
||||||
import org.apache.openjpa.util.StoreException;
|
import org.apache.openjpa.util.StoreException;
|
||||||
|
import org.apache.openjpa.util.UserException;
|
||||||
|
|
||||||
import serp.util.Numbers;
|
import serp.util.Numbers;
|
||||||
|
|
||||||
|
@ -501,6 +502,9 @@ public class OracleDictionary
|
||||||
public void setNull(PreparedStatement stmnt, int idx, int colType,
|
public void setNull(PreparedStatement stmnt, int idx, int colType,
|
||||||
Column col)
|
Column col)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
|
if ((colType == Types.CLOB || colType == Types.BLOB) && col.isNotNull())
|
||||||
|
throw new UserException(_loc.get("null-blob-in-not-nullable", col
|
||||||
|
.getFullName()));
|
||||||
if (colType == Types.BLOB && _driverBehavior == BEHAVE_ORACLE)
|
if (colType == Types.BLOB && _driverBehavior == BEHAVE_ORACLE)
|
||||||
stmnt.setBlob(idx, getEmptyBlob());
|
stmnt.setBlob(idx, getEmptyBlob());
|
||||||
else if (colType == Types.CLOB && _driverBehavior == BEHAVE_ORACLE
|
else if (colType == Types.CLOB && _driverBehavior == BEHAVE_ORACLE
|
||||||
|
|
|
@ -184,5 +184,6 @@ long-index-name: Index name "{0}" is {1}-character long. The database allows \
|
||||||
long-constraint-name: Constraint name "{0}" is {1}-character long. The \
|
long-constraint-name: Constraint name "{0}" is {1}-character long. The \
|
||||||
database allows maximum {2}-character for a constraint name.
|
database allows maximum {2}-character for a constraint name.
|
||||||
long-seq-name: Sequence name "{0}" is {1}-character long. The database allows \
|
long-seq-name: Sequence name "{0}" is {1}-character long. The database allows \
|
||||||
maximum {2}-character for a sequence name.
|
maximum {2}-character for a sequence name.
|
||||||
|
null-blob-in-not-nullable: Can not set null value on column "{0}" \
|
||||||
|
because the corresponding field is set to be non-nullable.
|
Loading…
Reference in New Issue