Subject | RE: [IB-Architect] ODBC Driver Compile |
---|---|
Author | Ken Richard |
Post date | 2000-07-06T18:47:54Z |
It works! I didn't get too far, but in my initial tests I did see two
problems - buffer overrun when result set has more than 20 columns - and use
of the wrong delete operator.
(Should these be posted here?)
Index: IscDbc/Sqlda.cpp
===================================================================
RCS file: /usr/local/interbase/OdbcJdbc/IscDbc/Sqlda.cpp,v
retrieving revision 1.3
diff -r1.3 Sqlda.cpp
49c49
< delete buffer;
---
< int count = sqlda->sqln;
---
problems - buffer overrun when result set has more than 20 columns - and use
of the wrong delete operator.
(Should these be posted here?)
Index: IscDbc/Sqlda.cpp
===================================================================
RCS file: /usr/local/interbase/OdbcJdbc/IscDbc/Sqlda.cpp,v
retrieving revision 1.3
diff -r1.3 Sqlda.cpp
49c49
< delete buffer;
---
> delete [] buffer;68c68
< int count = sqlda->sqln;
---
> int count = sqlda->sqld;