src/sql/drivers/db2/qsql_db2.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
  1023         case QVariant::ByteArray:
  1023         case QVariant::ByteArray:
  1024             v = new QVariant(qGetBinaryData(d->hStmt, field, lengthIndicator, isNull));
  1024             v = new QVariant(qGetBinaryData(d->hStmt, field, lengthIndicator, isNull));
  1025             break;
  1025             break;
  1026         case QVariant::Double:
  1026         case QVariant::Double:
  1027             {
  1027             {
  1028             QString value=qGetStringData(d->hStmt, field, info.length() + 1, isNull);
       
  1029             switch(numericalPrecisionPolicy()) {
  1028             switch(numericalPrecisionPolicy()) {
  1030                 case QSql::LowPrecisionInt32:
  1029                 case QSql::LowPrecisionInt32:
  1031                     v = new QVariant(qGetIntData(d->hStmt, field, isNull));
  1030                     v = new QVariant(qGetIntData(d->hStmt, field, isNull));
  1032                     break;
  1031                     break;
  1033                 case QSql::LowPrecisionInt64:
  1032                 case QSql::LowPrecisionInt64: