getNodeFactory().doJoinOrderOptimization(),
getContextManager()),
(SubqueryList) null,
(Vector) null);
TypeId columnTypeId = getType().getTypeId();
TypeId defaultTypeId = defaultTree.getTypeId();
// Check for 'invalid default' errors (42894)
// before checking for 'not storable' errors (42821).
if (!defaultTypeIsValid(columnTypeId, getType(),
defaultTypeId, defaultTree, defaultNode.getDefaultText()))
{
throw StandardException.newException(
SQLState.LANG_DB2_INVALID_DEFAULT_VALUE,
this.name);
}
// Now check 'not storable' errors.
if (! getTypeCompiler(columnTypeId).
storable(defaultTypeId, getClassFactory()))
{
throw StandardException.newException(SQLState.LANG_NOT_STORABLE,
columnTypeId.getSQLTypeName(),
defaultTypeId.getSQLTypeName() );
}
// Save off the default text
// RESOLVEDEFAULT - Convert to constant if possible
defaultInfo = new DefaultInfoImpl(false,