diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 04:22:30 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 06:00:07 +0000 |
commit | af2e7cb1265cd1252949368c04006603ba5cd39c (patch) | |
tree | 30c1720c0aef4ead57a69d5033eefc79cc5838e8 /libpqpp/pq-connection.cpp | |
parent | Non-const execute and save points (diff) | |
download | libdbpp-postgresql-af2e7cb1265cd1252949368c04006603ba5cd39c.tar.bz2 libdbpp-postgresql-af2e7cb1265cd1252949368c04006603ba5cd39c.tar.xz libdbpp-postgresql-af2e7cb1265cd1252949368c04006603ba5cd39c.zip |
Default (not supported) bulk upload implementation
Diffstat (limited to 'libpqpp/pq-connection.cpp')
-rw-r--r-- | libpqpp/pq-connection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp index 8fb6350..be57cc5 100644 --- a/libpqpp/pq-connection.cpp +++ b/libpqpp/pq-connection.cpp @@ -166,7 +166,7 @@ PQ::Connection::checkResultFree(PGresult * res, int expected, int alt) const } void -PQ::Connection::beginBulkUpload(const char * table, const char * extra) const +PQ::Connection::beginBulkUpload(const char * table, const char * extra) { char buf[BUFSIZ]; snprintf(buf, BUFSIZ, "COPY %s FROM STDIN %s", table, extra); @@ -174,7 +174,7 @@ PQ::Connection::beginBulkUpload(const char * table, const char * extra) const } void -PQ::Connection::endBulkUpload(const char * msg) const +PQ::Connection::endBulkUpload(const char * msg) { switch (PQputCopyEnd(conn, msg)) { case 0:// block |