summaryrefslogtreecommitdiff
path: root/libpqpp/pq-command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/pq-command.cpp')
-rw-r--r--libpqpp/pq-command.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libpqpp/pq-command.cpp b/libpqpp/pq-command.cpp
index 14efa77..84eaa43 100644
--- a/libpqpp/pq-command.cpp
+++ b/libpqpp/pq-command.cpp
@@ -2,12 +2,13 @@
#include "pq-connection.h"
#include <stdlib.h>
#include <string.h>
-#include <buffer.h>
+#include <compileTimeFormatter.h>
#include <boost/date_time/posix_time/posix_time.hpp>
+AdHocFormatter(PQCommondStatement, "pStatement_%?_%?");
PQ::Command::Command(Connection * conn, const std::string & sql, unsigned int no) :
DB::Command(sql),
- stmntName(stringbf("pStatement_%u_%p", no, this)),
+ stmntName(PQCommondStatement::get(no, this)),
c(conn)
{
}