summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/extra/m_sqlv2.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/extra/m_sqlv2.h b/src/modules/extra/m_sqlv2.h
index 211133fcb..ba74fa57f 100644
--- a/src/modules/extra/m_sqlv2.h
+++ b/src/modules/extra/m_sqlv2.h
@@ -185,18 +185,18 @@ public:
/** An overloaded operator for pushing parameters onto the parameter list
*/
- SQLquery& operator,(const std::string &foo)
+ template<typename T> SQLquery& operator,(const T &foo)
{
- p.push_back(foo);
+ p.push_back(ConvToStr(foo));
return *this;
}
/** An overloaded operator for pushing parameters onto the parameter list.
* This has higher precedence than 'operator,' and can save on parenthesis.
*/
- SQLquery& operator%(const std::string &foo)
+ template<typename T> SQLquery& operator%(const T &foo)
{
- p.push_back(foo);
+ p.push_back(ConvToStr(foo));
return *this;
}
};