what is data type -5? - Mailing list pgsql-odbc

From Igor Korot
Subject what is data type -5?
Date
Msg-id CA+FnnTx5uc16kSA_D=-wkcT9ZNj3skjxkt70GytyV5MvB6KNjQ@mail.gmail.com
Whole thread Raw
List pgsql-odbc
Hi, ALL,

[code}
        SQLSMALLINT columnNameLen, columnDataType, colummnDataDigits,
columnDataNullable;
        SQLULEN columnDataSize;
/*        columnData = new SQLWCHAR *[numCols];
        columnDataLen = new SQLLEN [numCols];*/
        auto columnName = new SQLWCHAR[50];
        memset( columnName, '\0', 50 );
        ret = SQLDescribeCol( stmt, 1, columnName, 256,
&columnNameLen, &columnDataType, &columnDataSize, &colummnDataDigits,
&columnDataNullable );
        if( ret != SQL_SUCCESS && ret != SQL_SUCCESS_WITH_INFO )
        {
            GetErrorMessage( errorMsg, 1, stmt );
            result = 1;
        }
[/code]

After executing the code above the value of columnDataType is -5
and all standard SQL types are positive.

What does -5 correspond to?
Is it the same as 5 which is SQL_SMALLINT, according to sql.h?

Thank you.



pgsql-odbc by date:

Previous
From: "Regina Obe"
Date:
Subject: RE: Question for psqlodbc_13_02
Next
From: "Jonnalagadda, Ram Reddy (C)"
Date:
Subject: postgresql 10.03