d_paridx++;
return this;
}
- SSqlStatement* bind(const string& name, const DNSName& value) {
- return bind(name, stripDot(value.toString())); // FIXME toLower() ?
- }
SSqlStatement* bindNull(const string& name) {
if (d_paridx >= d_parnum)
throw SSqlException("Attempt to bind more parameters than query has: " + d_query);
#include <string>
#include <vector>
-#include "../../namespaces.hh"
#include <inttypes.h>
#include "../../dnsname.hh"
+#include "../../namespaces.hh"
+#include "../../misc.hh"
class SSqlException
{
virtual SSqlStatement* bind(const string& name, long long value)=0;;
virtual SSqlStatement* bind(const string& name, unsigned long long value)=0;
virtual SSqlStatement* bind(const string& name, const std::string& value)=0;
- virtual SSqlStatement* bind(const string& name, const DNSName& value)=0;
+ SSqlStatement* bind(const string& name, const DNSName& value) {
+ return bind(name, stripDot(value.toString()));
+ }
virtual SSqlStatement* bindNull(const string& name)=0;
virtual SSqlStatement* execute()=0;;
virtual bool hasNextRow()=0;