DataTruncation
class in package klyn.databases.sql

    public class DataTruncation extends SQLWarning:

Object
└ Exception
└ SQLException
└ 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
property Inherited Properties from SQLWarning: nextWarning
property Inherited Properties from SQLException: sqlState, vendorCode
property Inherited Properties from Exception: message
property Inherited 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
method Inherited Methods from Exception: toString
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml