1 table.getColumnNullable
<table.getColumnNullable
table='table'
column='column'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Atable | string | Name of the table. | |||
Acolumn | string | Name of the column. |
Returns | |
---|---|
Type | Description |
Integer | Returns a boolean indicating if the column allows nulls. |
Exceptions
Database required.
Missing specify the database.
Required attribute [...]
A required attribute has not been specified.
Column 'colname' not found in table 'tabname'
The column does not exist in the table.
Remarks
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.
Issue a boolean indicating if the column allows nulls.
<xsql-script name='test_getColumnNullable'> <body> <println> <table.getColumnNullable table='capuntes' column='docser' /> </println> </body> </xsql-script>