summaryrefslogtreecommitdiff
path: root/libpqpp/pq-connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/pq-connection.cpp')
-rw-r--r--libpqpp/pq-connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp
index 21cbb5d..1fadde3 100644
--- a/libpqpp/pq-connection.cpp
+++ b/libpqpp/pq-connection.cpp
@@ -178,7 +178,7 @@ PQ::Connection::bulkUploadData(const char * data, size_t len) const
int64_t
PQ::Connection::insertId()
{
- CursorSelectCommand getId(this, "SELECT lastval()", pstmntNo++);
+ BulkSelectCommand getId(this, "SELECT lastval()", pstmntNo++, NULL);
int64_t id = -1;
while (getId.fetch()) {
getId[0] >> id;