** Description changed:

  Binary package hint: libqt4-sql-odbc
  
- Ubuntu / Kubuntu 4.10 everything worked perfectly.
+ Ubuntu / Kubuntu 10.04 everything worked perfectly.
  
  With ubuntu / kubuntu 10.10, accessing a database on the IBM iSeries, using a 
SELECT query from QT4 application, everything works correctly only with numeric 
fields on the database.
  If you try to read a text field with the method "QVariant value (int index) 
const", it lies in a crash!
  The error is as follows:
  
  gconv.c: 75: __gconv: Assertion "outbuf! = ((void *) 0) & & * outbuf! = 
((void *) 0) 'failed.
  Aborted
  
  It happens on application found on the repositories, just as stacked on
  personal application.
  
  For example, the application "tora", querying works on numeric fields,
  but does not work on text fields.
  
  For example, an application personnel arrived at this point in the
  source:
  
  ...
      while(query.next())
      {
        std::cout<<"Valore letto...";
        std::cout.flush();
        num_doc.append(query.value(1).toInt());
        std::cout<<"1...";
        std::cout.flush();
        sleep(3);
        QVariant a=query.value(0);
        std::cout<<"1.5...";
        std::cout.flush();
        main_window->listWidget_cli->addItem(QString("FD 
nr.")+QString::number(query.value(1).toInt())+QString(" di 
")+QString::fromLatin1(query.value(2).toByteArray().data()));
        std::cout<<"2...\n";
        std::cout.flush();
        stato=true;
      }
  ...
  
  the output is as follows:
  ...
  Valore letto...1...1.5...gfat: gconv.c:75: __gconv: Asserzione "outbuf != 
((void *)0) && *outbuf != ((void *)0)" non riuscita.
  Aborted
  
  Even with a simple:
  ...
  QVariant a=query.value(2);
  ...
  
  the output is as follows:
  ...
  gfat: gconv.c:75: __gconv: Asserzione "outbuf != ((void *)0) && *outbuf != 
((void *)0)" non riuscita.
  Aborted

** Tags added: database gconv ibm iseries odbc qodbc qstring qt4
qvariant sql

-- 
QVariant and ODBC for iSeries segmentation fault in text field.
https://bugs.launchpad.net/bugs/665188
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to