#2799 - Remove unused DatabasePlatform.treatEmptyStringsAsNull

This commit is contained in:
Rob Bygrave committed 2022-08-25 10:19:11 +12:00
1 parent 01155c3466
commit 6c7cedc1f1
2 files changed
-15

No files matched your search

@@ -140,11 +140,6 @@ public class DatabasePlatform {
*/ */
protected int clobDbType = Types.CLOB; protected int clobDbType = Types.CLOB;
/**
* For Oracle treat empty strings as null.
*/
protected boolean treatEmptyStringsAsNull;
/** /**
* The database platform name. * The database platform name.
*/ */
@@ -542,15 +537,6 @@ public class DatabasePlatform {
return clobDbType; return clobDbType;
} }
/**
* Return true if empty strings should be treated as null.
*
* @return true, if checks if is treat empty strings as null
*/
public boolean isTreatEmptyStringsAsNull() {
return treatEmptyStringsAsNull;
}
/** /**
* Return true if a compound ID in (...) type expression needs to be in * Return true if a compound ID in (...) type expression needs to be in
* expanded form of (a=? and b=?) or (a=? and b=?) or ... rather than (a,b) in * expanded form of (a=? and b=?) or (a=? and b=?) or ... rather than (a,b) in
@@ -38,7 +38,6 @@ public class OraclePlatform extends DatabasePlatform {
this.dbDefaultValue.setFalse("0"); this.dbDefaultValue.setFalse("0");
this.dbDefaultValue.setTrue("1"); this.dbDefaultValue.setTrue("1");
this.dbDefaultValue.setNow("current_timestamp"); this.dbDefaultValue.setNow("current_timestamp");
this.treatEmptyStringsAsNull = true;
this.likeClauseRaw = "like ?"; this.likeClauseRaw = "like ?";
this.exceptionTranslator = this.exceptionTranslator =