Class SqlRowTypeNameSpec

  • public class SqlRowTypeNameSpec
    extends SqlTypeNameSpec
    A sql type name specification of row type.

    The grammar definition in SQL-2011 IWD 9075-2:201?(E) 6.1 <data type> is as following:

     <row type> ::=
       ROW <row type body>
     <row type body> ::=
       <left paren> <field definition>
       [ { <comma> <field definition> }... ]
       <right paren>
     <field definition> ::=
       <field name> <data type>

    We also support to add a [ NULL | NOT NULL ] suffix for every field type, i.e. Row(f0 int null, f1 varchar not null), the default is not nullable.

    • Constructor Detail

      • SqlRowTypeNameSpec

        public SqlRowTypeNameSpec​(SqlParserPos pos,
                                  java.util.List<SqlIdentifier> fieldNames,
                                  java.util.List<SqlDataTypeSpec> fieldTypes)
        Creates a row type specification.
        pos - The parser position.
        fieldNames - The field names.
        fieldTypes - The field data types.