Hi all,

I'm testing to upgrade my Qt 4.6.2 version ( in a Ubuntu machine 64 bits, FreeTDS 0.63 ) to Qt 4.7.

When testing this simple APP, it fails ( working without problems in 4.6.3 version... )
Qt Code:
  1. #include <QCoreApplication>
  2. #include <QSqlDatabase>
  3. #include <QSqlQuery>
  4. #include <QSqlError>
  5.  
  6. int main ( int argc, char *argv[] )
  7. {
  8. QCoreApplication a(argc, argv);
  9.  
  10. QSqlDatabase db = QSqlDatabase::addDatabase("QODBC");
  11. db.setDatabaseName ( "DRIVER=FREETDS;SERVER=EPC;SERVERNAME=SQL-Spanish;DATABASE=CRCDAT");
  12. db.setUserName("sa");
  13. db.setPassword("*****");
  14.  
  15. if ( db.open() )
  16. {
  17. qDebug ( "CONNECTION WORKED" );
  18. QSqlQuery QRY;
  19. QRY.setForwardOnly(true);
  20. QRY.exec ( "SELECT TOP 10 * FROM SYSOBJECTS" );
  21. if ( QRY.lastError().isValid() )
  22. qDebug ( "Error executing SQL Query : %s", qPrintable ( QRY.lastError().text() ) );
  23. }
  24. else
  25. qDebug ( "CONNECTION FAIL" );
  26.  
  27. return 0;
  28. }
To copy to clipboard, switch view to plain text mode 

Says something like
Error executing SQL Query [unixODBC][Driver Manager]Driver does not support this function QODBC3: QODBCResult::reset: Unable to set 'SQL_CURSOR_STATIC' as statement attribute. Please check your ODBC driver configuration
Obviously I've seen it's not an ODBC config problem, it I test the same program linked with Qt 4.6.2 works like a charm...

Can somebody run this simple test program in a similar environment & confirm it's Qt's bug before open a task in bugtracker ? Many thanks