From: <car...@ho...> - 2002-06-25 16:50:45
|
Hello: 1. I´m testing the last CVS sources under Visual Foxpro and the driver crashes when V.Foxpro made a call to SQLPrepare and a call to SQLNumResultcols ( almost to me in my test ), the problem is in this block of code: if (!resultSet ){ // Contributed by B. Schulte // if the resultSet does not exist, execute it, to get a valid resultSet // Foxpro calls this function to get all column-descriptions for its // remote-views. // This fixes the bug : ' I can't edit my remote-views in Visial FoxPro' this->executeStatement(); } I solve the problem of the views in Visual foxpro in other way, i put here my code for solve it : OdbcStatement.h: Add this at line 153: bool updatePreparedResultSet; OdbcStatement.cpp: Add this line 112 ( OdbcStatement::OdbcStatement ): updatePreparedResultSet = true; Add this line 242 ( OdbcStatement::sqlPrepare ): if( updatePreparedResultSet ) setResultSet(statement->getResultSet()); Add this line 929 ( OdbcStatement::sqlExecute ): if ( resultSet ) releaseResultSet(); Add this line 844 ( OdbcStatement::sqlExecuteDirect ): updatePreparedResultSet = false; int retcode = sqlPrepare (sql, sqlLength); updatePreparedResultSet = true; 2. With last CVS Sources parametrized statements don´t work ( Tested in Visual Foxpro ). The problem seems to be in the new way for exec the statements ( the changes for DATA_AT_EXEC parameters ) because i have my own code for DATA_AT_EXEC parameters ( that is unfinished work ) in other tree source for the driver and it works well with the rest of changes of the last CVS sources ( O dont test Blob fields ). Best regards Carlos Guzmán Álvarez |