From c5f116af8c044883edf44311173a0c6c017b7d59 Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 17 Feb 2011 20:42:53 +0000 Subject: Add check function for when a connection is finished with, but you don't want to close it Use prepared statements only for modifications, use fetch instead for selects (doesn't load an entire record set) Support varchar oid --- libpqpp/modifycommand.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libpqpp/modifycommand.h') diff --git a/libpqpp/modifycommand.h b/libpqpp/modifycommand.h index a9cdbef..8f63a2e 100644 --- a/libpqpp/modifycommand.h +++ b/libpqpp/modifycommand.h @@ -12,6 +12,11 @@ namespace PQ { virtual ~ModifyCommand(); unsigned int execute(bool); + + private: + const std::string stmntName; + void prepare() const; + mutable bool prepared; }; } -- cgit v1.2.3