DataTruncation
classin packageklyn.databases.sql
public class DataTruncation extends SQLWarning:
└ DataTruncation

Warning raised when data is truncated during read or write.

import klyn.databases.sql

warning = DataTruncation()
warning.index = 2
warning.parameter = true
warning.dataSize = 200
warning.transferSize = 64
print(warning.index)
Properties
Modifier and Type Member Description
public property dataSize
dataSize as Int
Original value size.
public property index
index as Int
Column or parameter index.
public property parameter
parameter as Boolean
True when the truncation happened on a parameter write.
public property read
read as Boolean
True when the truncation happened on a read operation.
public property transferSize
transferSize as Int
Transferred value size.
Inherited Properties
propertyInherited Properties from SQLWarning: nextWarning
propertyInherited Properties from SQLException: sqlState, vendorCode
propertyInherited Properties from Exception: message
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public DataTruncation
DataTruncation(message as String = "Data truncation"):
Creates a data truncation warning.
Inherited Methods
methodInherited Methods from Exception: toString
methodInherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml