Truncate the string or text, adapting it to the maximum allowed by the length of the column according to its scheme. If the column does not exist, an exception is issued.

1 table.getColumnValueSized

    <value /> !


Database required.

Missing specify the database.

Required attribute [...]

A required attribute has not been informed.

Column 'colname' not found in table 'tabname'

The column does not exist in the table.


This function returns the value of the cache, so the first time that you use the table, the values of the metadata are load and stored in cache. It is difficult to get this information and thess values will not change unless a ddl operation occurs, it means an alteration of the physical model of the database, in which case is recommended to remove the corresponding caches through the function system.cache.clear, to obtain the real values.


Returns the argument string truncated until the length of the schema of the column capuntes.docser.

<xsql-script name='test_getColumnValueSized'>

            <table.getColumnValueSized table='capuntes' column='docser'><string>12345678901234567890</string></table.getColumnValueSized>