StringTruncationMethodForWrites
- Last Updated: August 12, 2024
- 1 minute read
- DataDirect Connectors
- JDBC
- MongoDB 6.1
- Documentation
Purpose
Determines the behavior of the driver when attempting to insert String values that exceed the column length defined in the relational schema.
Valid Values
Keep | Error
Behavior
If set to keep, the driver inserts String values that exceed the column length defined in the relational schema without truncating the value.
If set to error the driver returns an error when attempting to insert a String value that exceeds the column length defined in the relational schema.
Notes
- For STRING columns, the driver determines the column size to be 50% greater than the longest sampled value in the column. Setting this property to
keepallows for inserts with values larger than those identified through sampling to succeed.
Data Source Methods
public String getStringTruncationMethodForWrites()
public void setStringTruncationMethodForWrites(String)
Default Value
Error
Data Type
String