Qore SqlUtil Module Reference
1.7.5
|
SqlUtil column field class. More...
Inherits QoreDataField.
Public Member Methods | |
constructor (string name, *string desc, AbstractDataProviderType type, auto default_value) | |
creates the field from the arguments | |
constructor (string name, *string desc, Type type, auto default_value) | |
creates the field from the arguments More... | |
setDefaultValue (auto default_value) | |
sets the default value for the field | |
SqlUtil column field class.
SqlUtil::SqlUtilColumnField::constructor | ( | string | name, |
*string | desc, | ||
Type | type, | ||
auto | default_value | ||
) |
creates the field from the arguments
if a default value is given, the value may be an expression executed server side which will fail the type checks in the assignment, so if we have a default value, in case we cannot set it, we set the type to nullable as anyway the value will be generated server side