quote QUuid values

Task-number: QTBUG-44480
Change-Id: I125ab913c867758d958a2774ad125533d6a07a83
Reviewed-by: Evgeniy Fominov <fm@stilsoft.ru>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
This commit is contained in:
Evgeniy Fominov 2015-02-16 14:36:54 +01:00 committed by Mark Brand
parent d1ce29557c
commit 34014406ba

View File

@ -1320,6 +1320,9 @@ QString QPSQLDriver::formatValue(const QSqlField &field, bool trimStrings) const
}
break;
}
case QVariant::Uuid:
r = QLatin1Char('\'') + field.value().toString() + QLatin1Char('\'');
break;
default:
r = QSqlDriver::formatValue(field, trimStrings);
break;