Skip to content

Commit

Permalink
used single quote for string literals in logging
Browse files Browse the repository at this point in the history
In the query logging, during replace bindings.
  • Loading branch information
silverqx committed Nov 19, 2022
1 parent ebcf9b9 commit 04679ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/orm/utils/query.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ namespace Orm::Utils
else
// Support for string quoting
bindingValue = (Helpers::qVariantTypeId(binding) == QMetaType::QString)
? QStringLiteral("\"%1\"")
? QStringLiteral("'%1'")
.arg(binding.template value<QString>())
: binding.template value<QString>();

Expand Down

0 comments on commit 04679ec

Please sign in to comment.