From 7001e0ccd9f6f93f2e38572221c223f8adaf0eaf Mon Sep 17 00:00:00 2001 From: randomdan Date: Fri, 11 Feb 2011 14:55:07 +0000 Subject: Support for table patching in different ways according to what the connector says Introduce two proper methods of bulk update Tested against PG 8.4, MySQL 5.1 with single and multiple column keys --- libodbcpp/connection.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libodbcpp/connection.h') diff --git a/libodbcpp/connection.h b/libodbcpp/connection.h index d37b679..4fc52ca 100644 --- a/libodbcpp/connection.h +++ b/libodbcpp/connection.h @@ -25,11 +25,16 @@ namespace ODBC { void ping() const; std::string getAttrStr(SQLINTEGER) const; SQLINTEGER getAttrInt(SQLINTEGER) const; + DB::BulkDeleteStyle bulkDeleteStyle() const; + DB::BulkUpdateStyle bulkUpdateStyle() const; DB::SelectCommand * newSelectCommand(const std::string & sql) const; DB::ModifyCommand * newModifyCommand(const std::string & sql) const; private: + DB::BulkDeleteStyle thinkDelStyle; + DB::BulkUpdateStyle thinkUpdStyle; + void connectPre(); void connectPost(); mutable unsigned int txDepth; -- cgit v1.2.3