Data types in imported tables

When importing tables from another GDBase database the types are preserved without any changes.

When a table is imported using ODBC drivers, the data is first mapped into one of general SQL types, which are subsequently converted into one of GDBase basic types according to the following type conversion table:

Table 44.1. ODBC Import type conversions

SQL typeGDBase type
SQL_GUIDTEXT
SQL_CHAR
SQL_VARCHAR
SQL_LONGVARCHAR
SQL_WCHAR
SQL_WVARCHAR
SQL_WLONGVARCHAR
SQL_DECIMALREAL
SQL_NUMERIC
SQL_REAL
SQL_FLOAT
SQL_DOUBLE
SQL_SMALLINTINTEGER
SQL_INTEGER
SQL_TINYINT
SQL_BIT
SQL_BIGINT
SQL_TYPE_DATEDATE
SQL_TYPE_TIMETIME
SQL_TYPE_TIMESTAMPDATETIME

For other data types the behavior depends on the specification in the ON ERROR clause.