* [ 1638208 ] WAN: Update record error
This commit is contained in:
parent
8f71508fb3
commit
128c76ca31
|
@ -51,6 +51,16 @@ public class DB_Oracle implements AdempiereDatabase, OracleConnectionCacheCallba
|
|||
log.log(Level.SEVERE, e.getMessage());
|
||||
}
|
||||
**/
|
||||
// teo [ bug 1638208 ]: oracle 10g DATETIME issue
|
||||
// http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#08_01
|
||||
try
|
||||
{
|
||||
System.setProperty("oracle.jdbc.V8Compatible", "true");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
log.log(Level.SEVERE, e.getMessage());
|
||||
}
|
||||
} // DB_Oracle
|
||||
|
||||
/** Static Driver */
|
||||
|
@ -789,15 +799,27 @@ public class DB_Oracle implements AdempiereDatabase, OracleConnectionCacheCallba
|
|||
|
||||
/**
|
||||
* Get Data Type
|
||||
* @param columnName
|
||||
* @param displayType display type
|
||||
* @param precision precision
|
||||
* @param defaultValue if true adds default value
|
||||
* @return data type
|
||||
*/
|
||||
public String getDataType (int displayType, int precision,
|
||||
public String getDataType (String columnName, int displayType, int precision,
|
||||
boolean defaultValue)
|
||||
{
|
||||
String retValue = null;
|
||||
//handle special case, bug [ 1618423 ]
|
||||
if (columnName != null)
|
||||
{
|
||||
if (displayType == DisplayType.Button
|
||||
&& columnName.endsWith("_ID"))
|
||||
{
|
||||
retValue = "NUMBER(10)";
|
||||
}
|
||||
}
|
||||
if (retValue == null)
|
||||
{
|
||||
switch (displayType)
|
||||
{
|
||||
// IDs
|
||||
|
@ -879,6 +901,7 @@ public class DB_Oracle implements AdempiereDatabase, OracleConnectionCacheCallba
|
|||
log.severe("Unknown: " + displayType);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return retValue;
|
||||
} // getDataType
|
||||
|
||||
|
|
Loading…
Reference in New Issue