---
libs/libmythbase/mythdbcon.cpp | 7 6 + 1 - 0 !
1 file changed, 6 insertions(+), 1 deletion(-)
|
old
|
new
|
bool MSqlQuery::exec() |
| 512 | 512 | while (b.hasNext()) |
| 513 | 513 | { |
| 514 | 514 | b.next(); |
| 515 | | str.replace(b.key(), '\'' + b.value().toString() + '\''); |
| | 515 | if (b.value().type() == QVariant::DateTime) |
| | 516 | str.replace(b.key(), '\'' + b.value().toDateTime() |
| | 517 | .toString("yyyy-MM-dd hh:mm:ss") + |
| | 518 | '\''); |
| | 519 | else |
| | 520 | str.replace(b.key(), '\'' + b.value().toString() + '\''); |
| 516 | 521 | } |
| 517 | 522 | |
| 518 | 523 | VERBOSE(VB_DATABASE, |