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.

Properties inherited from SQLWarning: nextWarning
Properties inherited from SQLException: sqlState, vendorCode
Properties inherited from Exception: message
Properties inherited from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | DataTruncation `DataTruncation(message as String = "Data truncation"):` | Creates a data truncation warning.

Methods inherited from Exception: toString
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml