public class DataTruncation extends SQLWarning:
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)
| Modifier and Type | Member | Description |
|---|---|---|
| public property | dataSizedataSize as Int |
Original value size. |
| public property | indexindex as Int |
Column or parameter index. |
| public property | parameterparameter as Boolean |
True when the truncation happened on a parameter write. |
| public property | readread as Boolean |
True when the truncation happened on a read operation. |
| public property | transferSizetransferSize as Int |
Transferred value size. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | DataTruncationDataTruncation(message as String = "Data truncation"): |
Creates a data truncation warning. |