qsql_ibase: use virtual createResult
This method is virtual probably to avoid having to use the specific driver type in cases like this. Change-Id: Ifd9d5e2d320b744e098a0b24ae6f3a89cfc15c9a Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>bb10
parent
d19b6c646e
commit
550fbf96b0
|
|
@ -1374,7 +1374,7 @@ QSqlRecord QIBaseResult::record() const
|
|||
f.setPrecision(qAbs(v.sqlscale));
|
||||
f.setRequiredStatus((v.sqltype & 1) == 0 ? QSqlField::Required : QSqlField::Optional);
|
||||
if(v.sqlscale < 0) {
|
||||
QSqlQuery q(new QIBaseResult(d->db));
|
||||
QSqlQuery q(driver()->createResult());
|
||||
q.setForwardOnly(true);
|
||||
q.exec(QLatin1String("select b.RDB$FIELD_PRECISION, b.RDB$FIELD_SCALE, b.RDB$FIELD_LENGTH, a.RDB$NULL_FLAG "
|
||||
"FROM RDB$RELATION_FIELDS a, RDB$FIELDS b "
|
||||
|
|
|
|||
Loading…
Reference in New Issue