Revert "SQL/IBase: print warning in case of unsupported data type"
This reverts commit 1fc95e5214c5ac6d831eb5e2701a061bddbe1f9f. Reason for revert: Doesn't compile Pick-to: 6.5 Change-Id: I0e8b39bd2b4f490664bdc935b941b2e7bdf1eb89 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
This commit is contained in:
parent
2ca66ab096
commit
98ab914efc
@ -115,7 +115,6 @@ static void initDA(XSQLDA *sqlda)
|
||||
default:
|
||||
// not supported - do not bind.
|
||||
sqlda->sqlvar[i].sqldata = 0;
|
||||
qCWarning(lcIbase, "initDA: unknown sqltype: %d", sqlda->sqlvar[i].sqltype & ~1);
|
||||
break;
|
||||
}
|
||||
if (sqlda->sqlvar[i].sqltype & 1) {
|
||||
@ -206,10 +205,8 @@ static QMetaType::Type qIBaseTypeName2(int iType, bool hasScale)
|
||||
case SQL_BOOLEAN:
|
||||
return QMetaType::Bool;
|
||||
default:
|
||||
break;
|
||||
return QMetaType::UnknownType;
|
||||
}
|
||||
qCWarning(lcIbase, "qIBaseTypeName: unknown datatype: %d", iType);
|
||||
return QMetaType::UnknownType;
|
||||
}
|
||||
|
||||
static ISC_TIMESTAMP toTimeStamp(const QDateTime &dt)
|
||||
@ -1291,8 +1288,6 @@ bool QIBaseResult::gotoNext(QSqlCachedResult::ValueCache& row, int rowIdx)
|
||||
#endif
|
||||
default:
|
||||
// unknown type - don't even try to fetch
|
||||
qCWarning(lcIbase, "gotoNext: unknown sqltype: %d",
|
||||
d->sqlda->sqlvar[i].sqltype & ~1);
|
||||
row[idx] = QVariant();
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user