summaryrefslogtreecommitdiff
path: root/libpqpp/command.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-01-27 23:43:09 +0000
committerrandomdan <randomdan@localhost>2013-01-27 23:43:09 +0000
commit9fe4e4418a88b69ed12a37d5ad13cddb8e047b67 (patch)
tree0bfe5395a8d8fe82df757d9d1fb9cce105122291 /libpqpp/command.cpp
parentRecord tx open separately from executed for the cases when the execute fails (diff)
downloadlibdbpp-postgresql-9fe4e4418a88b69ed12a37d5ad13cddb8e047b67.tar.bz2
libdbpp-postgresql-9fe4e4418a88b69ed12a37d5ad13cddb8e047b67.tar.xz
libdbpp-postgresql-9fe4e4418a88b69ed12a37d5ad13cddb8e047b67.zip
Increase buffer size for statement names
Diffstat (limited to 'libpqpp/command.cpp')
-rw-r--r--libpqpp/command.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/command.cpp b/libpqpp/command.cpp
index f8dad14..fa2dc1d 100644
--- a/libpqpp/command.cpp
+++ b/libpqpp/command.cpp
@@ -5,7 +5,7 @@
static std::string addrStr(void * p, unsigned int no) {
std::string r;
- r.resize(30);
+ r.resize(50);
r.resize(snprintf(const_cast<char *>(r.c_str()), 30, "pStatement_%u_%p", no, p));
return r;
}