Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yl0VN-0006Tv-WF for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Apr 2015 19:40:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yl0VN-0005yO-Bv for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Apr 2015 19:40:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YkteN-0007rZ-IW for pgsql-bugs@postgresql.org; Wed, 22 Apr 2015 12:21:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YkteK-0001Yv-0C for pgsql-bugs@postgresql.org; Wed, 22 Apr 2015 12:21:06 +0000 MIME-Version: 1.0 Subject: BUG #13124: OLEDB insert/update on rowset To: pgsql-bugs@postgresql.org From: stejsky@volny.cz Date: Wed, 22 Apr 2015 12:20:45 +0000 Message-ID: <20150422122045.553.97371@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.1 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13124 Logged by: Petr Stejskal Email address: stejsky@volny.cz PostgreSQL version: 9.4.1 Operating system: Windows Vista Description: Hello, does the Postgresql oledb driver support Insert/Update operation? I get the error E_NOINTERFACE (0x80004002) on Insert function. see the code: CoInitialize(NULL); CDataSource db; CSession session; CDBPropSet dbinit(DBPROPSET_DBINIT); dbinit.AddProperty(DBPROP_AUTH_INTEGRATED, "SSPI"); dbinit.AddProperty(DBPROP_AUTH_PERSIST_SENSITIVE_AUTHINFO, false); dbinit.AddProperty(DBPROP_AUTH_USERID, "myuser"); dbinit.AddProperty(DBPROP_AUTH_PASSWORD, "pass"); dbinit.AddProperty(DBPROP_INIT_CATALOG, "mydatabase"); dbinit.AddProperty(DBPROP_INIT_DATASOURCE, "127.0.0.1"); dbinit.AddProperty(DBPROP_INIT_LCID, (long)1029); dbinit.AddProperty(DBPROP_INIT_PROMPT, (short)4); hr = db.OpenWithServiceComponents("PostgreSQL.1", &dbinit); hr = session.Open(db); CDBPropSet propsetI(DBPROPSET_ROWSET); propsetI.AddProperty(DBPROP_IRowsetChange, true); propsetI.AddProperty(DBPROP_UPDATABILITY, DBPROPVAL_UP_CHANGE | DBPROPVAL_UP_INSERT | DBPROPVAL_UP_DELETE); propsetI.AddProperty(DBPROP_CANFETCHBACKWARDS, true); { TRY_HRESULT(hr) CCommand > t; hr = t.Open(session, "select * from abc", &propsetI); t.m_EVENT_ID = 123; t.m_idstatus = DBSTATUS_S_OK; hr = t.Insert(); t.Close(); CATCH_HRESULT(hr) } -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs