Use the tibasMetaspace_AlterSpace() function to alter a space definition for a specified space. You can add new fields to the space definition; however, any new fields that you specify must be set as nullable.
If the spaceDef that you pass to the function is not defined, then tibasMetaspace_AlterSpace() defines it. If there is an existing spaceDef, then the function attempts to modify the existing one, and if the new space definition is not compatible with the existing one, an exception is generated indicating the cause of the error.
If you are you are calling tibasMetaspace_AlterSpace() to modify an existing spaceDef, then you can use the
tibas_spaceDef functions to set up the spaceDef and the
tibasFieldDef functions to define the field definitions for the space. Then pass the
spaceDef object that you have created to
tibasMetaspace_AlterSpace().