node-odbc icon indicating copy to clipboard operation
node-odbc copied to clipboard

endless loop

Open rbartholomay opened this issue 9 years ago • 1 comments

Hi,

i use the odbc with the "AR System ODBC Driver". it seems that dthe driver did not respond with the correct info if is select some columns. In my case there is an endless loop when i select a char column. I did an odbc protocoll, there is the data, but it seems that the fetchall have a problem. Any idea?

This is the part of an endless loop:

node  --harmony 1778-2530   EXIT  SQLGetData  with return code 0 (SQL_SUCCESS)
        HSTMT               0x001328C8
        UWORD                        3 
        SWORD                       -8 <SQL_C_WCHAR>
        PTR                 0x059D0020 [      20] "Zugewiesen"
        SQLLEN               1048575
        SQLLEN *            0x003DF514 (20)

node  --harmony 1778-2530   ENTER SQLGetData 
        HSTMT               0x001328C8
        UWORD                        3 
        SWORD                       -8 <SQL_C_WCHAR>
        PTR                 0x059D0020 
        SQLLEN               1048575
        SQLLEN *            0x003DF514

node  --harmony 1778-2530   EXIT  SQLGetData  with return code 0 (SQL_SUCCESS)
        HSTMT               0x001328C8
        UWORD                        3 
        SWORD                       -8 <SQL_C_WCHAR>
        PTR                 0x059D0020 [      20] "Zugewiesen"
        SQLLEN               1048575
        SQLLEN *            0x003DF514 (20)

node  --harmony 1778-2530   ENTER SQLGetData 
        HSTMT               0x001328C8
        UWORD                        3 
        SWORD                       -8 <SQL_C_WCHAR>
        PTR                 0x059D0020 
        SQLLEN               1048575
        SQLLEN *            0x003DF514

node  --harmony 1778-2530   EXIT  SQLGetData  with return code 0 (SQL_SUCCESS)
        HSTMT               0x001328C8
        UWORD                        3 
        SWORD                       -8 <SQL_C_WCHAR>
        PTR                 0x059D0020 [      20] "Zugewiesen"
        SQLLEN               1048575
        SQLLEN *            0x003DF514 (20)

rbartholomay avatar Jul 25 '16 08:07 rbartholomay

the problem is the loop in odbc.cpp. in my case the one column index will be read again and again. In the moment i remove the loop - but this cannot be the solution

rbartholomay avatar Jul 27 '16 10:07 rbartholomay