Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

OdbcType

Specifies the type used when this data type is exposed via ODBC or JDBC. Every data type class must specify an ODBC type. This keyword applies only to data type classes.

Usage

To specify the type to use when this data type is projected via ODBC or JDBC, use the following syntax:

Class MyApp.MyString [ ClassType = DataType, OdbcType = odbctype ]  { //class members }

Where odbctype is one of the following:

  • BIGINT

  • BIT

  • DATE

  • DOUBLE

  • INTEGER

  • LONGVARBINARY

  • LONGVARCHAR

  • NUMERIC

  • RESULTSET

  • SMALLINT

  • STRUCT

  • TIME

  • TIMESTAMP

  • TINYINT

  • VARBINARY

  • VARCHAR (default)

Details

This keyword specifies the type used when exposed via ODBC or JDBC.

Every data type class must specify an ODBC type.

Effect on Subclasses

This keyword is inherited from the primary superclass. The subclass can override the value of the keyword.

Default

If you omit this keyword, the ODBC type is VARCHAR.

See Also

FeedbackOpens in a new tab