ODBC Function SQLColumns returns different data types than expected.
Env: Vertica 6.1.2 with Vertica ODBC on Linux64. Issue: ODBC SQLColumns returns different data types than expected. I ran a little test program that compares Vertica with 2 other databases to show the difference. It should be easy to reproduce, I'm just using the standard SQLColumns ODBC call. Table schema: CREATE TABLE TEST1( ID INTEGER NOT NULL,FNAME CHAR(15), LNAME CHAR(20),AGE SMALLINT,GENDER CHAR(1),SCORE FLOAT, TOTAL DOUBLE PRECISION) Program results: Vertica: ./test SQLColumns retcode: 0 TEST1.ID type -5 TEST1.FNAME type -8 TEST1.LNAME type -8 TEST1.AGE type -5 TEST1.GENDER type -8 TEST1.SCORE type 8 TEST1.TOTAL type 8 DBMS A: ./test SQLColumns retcode: 0 test1.id type 4 test1.fname type 1 test1.lname type 1 test1.age type 5 test1.gender type 1 test1.score type 7 test1.total type 8 DBMS B: ./test SQLColumns retcode: 0 test1.id type 4 test1.fname type 1 test1.lname type 1 test1.age type 5 test1.gender type 1 test1.score type 8 test1.total type 8 Has anyone seen that? Any ideas? Thanks, Ivan
0
Comments