Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFnEl-0006gS-0m for pgsql-odbc@arkaria.postgresql.org; Wed, 22 Jun 2016 18:50:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bFnEj-0005SL-T3 for pgsql-odbc@arkaria.postgresql.org; Wed, 22 Jun 2016 18:50:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bFnEj-0005SA-DU for pgsql-odbc@postgresql.org; Wed, 22 Jun 2016 18:50:53 +0000 Received: from smtp-out-no.shaw.ca ([64.59.134.9]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bFnEc-0006uf-3C for pgsql-odbc@postgresql.org; Wed, 22 Jun 2016 18:50:52 +0000 Received: from [192.168.1.104] ([24.76.197.120]) by shaw.ca with SMTP id FnERbsQ3CwsAcFnEWbPMX4; Wed, 22 Jun 2016 12:50:40 -0600 X-Authority-Analysis: v=2.2 cv=U7HQNqju c=1 sm=1 tr=0 a=0xHi8IM+gvA4XaDAv78osQ==:117 a=0xHi8IM+gvA4XaDAv78osQ==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=-fBP8Z0tAAAA:8 a=hnuN_NPfAAAA:8 a=SNL7wKpgAAAA:8 a=epTmVMiNAAAA:8 a=AtH_Ni-QkFNbvqGKHHIA:9 a=haSmFR9u02aejTID:21 a=-5OGN8EldWfG5yKb:21 a=6V0prl30AAAA:8 a=A0F02fRRAAAA:8 a=prktvnycU3UWzXX4FrIA:9 a=AZLIEtIhSGf2LeTB:21 a=_xfch1mQSuMMVTyE:21 a=ZnHr2vYfFySyJIee:21 a=UiCQ7L4-1S4A:10 a=hTZeC7Yk6K0A:10 a=_W_S_7VecoQA:10 a=frz4AuCg-hUA:10 a=bQIAtpAOD4awmNR6rRUA:9 a=PXfmwgE6tmDNLY5r:18 a=HXjIzolwW10A:10 a=zShil-Or4_NeeervFEIM:22 a=9abRHzpianJtGqW3gzr1:22 a=uEXi9pYaZPHPrIM342IW:22 a=ndEWmUVY6Yapc0oHF_P4:22 a=cN1cEogRWNVijGu5H4Ii:22 a=Z19azF89xz0LKoqNrbu0:22 Subject: Re: Multilevel inserts issue with ODBC References: <2167f9ca-4d55-9df4-9bc9-dd21a2d79a1f@cleartagsoftware.com> To: "pgsql-odbc@postgresql.org" From: George Weaver Organization: Cleartag Software, Inc. X-Forwarded-Message-Id: <2167f9ca-4d55-9df4-9bc9-dd21a2d79a1f@cleartagsoftware.com> Message-ID: Date: Wed, 22 Jun 2016 13:50:32 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <2167f9ca-4d55-9df4-9bc9-dd21a2d79a1f@cleartagsoftware.com> Content-Type: multipart/alternative; boundary="------------E40532F538E3CA180EC6FD3E" X-CMAE-Envelope: MS4wfICd+j7vxGpeNLxyzww2N7h8o+uj5H+hZhgvlL+zDST0gi1M2GVpjwxVSc7K/Yp7xZ/L16LvgnWWYrNh7ItAWWWX1sbaR26J4qkKXKFbDTOwnsu/u4B+ 2SCnfA+ECAp4+KMXZ6C7uPsTFNW8Dtem03YqoHYWT7JDm9ZC8LhSuLrDJHsQeAYSSpvMdBSStN67ig== X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org This is a multi-part message in MIME format. --------------E40532F538E3CA180EC6FD3E Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Hi Krishnanand, I have done multi-level inserts (up to several thousand rows) from a VB.NET application using the psqlODBC driver - various versions - on XP, Win 7, and Win 10. Hope this helps, George/ / On 22/06/2016 4:20 AM, krishnanand.pandey@accenture.com wrote: > > Hi Adrian > > Same thing I am trying in a Windows XP 64bit machine from VB > application it fails with the error (3137Missing semicolon (;) at end > of SQL statement.). > > And if the same multi-level insert statement from code executed from > psql/pgadmin it works. > > Could you please check the below statement from Windows odbc? > > Thanks > > /Krishnanand Pandey/ > > cid:image001.png@01D05501.1577B7C0 > Newcastle Delivery Centre ** > > UK Delivery Centre (Newcastle) > > 15A | 1 Quick Silver Way | Cobalt Business Park |Tyne and Wear| NE27 0QQ > > *krishnanand.pandey@accenture.com > > Confidential > > /This message is for the designated recipient only and may contain > confidential, privileged, proprietary, or otherwise private > information. If you have received it in error, please notify the > sender immediately and delete the original. Any other use of this > email by you is prohibited.///// > > /Communications with Accenture or any of its group companies > (“Accenture Group”) including telephone calls and emails (including > content), may be monitored by us for the purposes of security and the > assessment of internal compliance with company policy. Accenture Group > does not accept service by e-mail of court proceedings, other > processes or formal notices of any kind. /// > > /Accenture means Accenture (UK) Limited (registered number 4757301), > Accenture Services Limited (registered number 2633864), or Accenture > HR Services Limited (registered number 3957974), all registered in > England and Wales with registered addresses at 30 Fenchurch Street, > London EC3M 3BD, as the case may be./ > > -----Original Message----- > From: Adrian Klaver [mailto:adrian.klaver@aklaver.com] > Sent: 21 June 2016 21:57 > To: Pandey, Krishnanand ; > pgsql-odbc@postgresql.org > Subject: Re: [ODBC] Multilevel inserts issue with ODBC > > On 06/21/2016 01:37 AM, > krishnanand.pandey@accenture.com > wrote: > > > Hi Adrian > > > > > > > > > > > > We are seeing this error in the VB application logs where we have > > > captured the error with the Err.Number and Err.Description in the code. > > > > > > Are there any limitations in the ODBC driver that it cannot handle > > > multi-level inserts? > > Not that I can see. Just got a chance to compile 09.05.0300 on my > Linux machine. Going through the isql utility of unixODBC: > > SQL> INSERT INTO odbc_test(id, fld_1) VALUES (1, 'one'), (2, 'two'), (3, > > 'three') > > SQLRowCount returns 3 > > postgres@production=# select * from odbc_test ; > > id | fld_1 > > ----+------- > > 1 | one > > 2 | two > > 3 | three > > (3 rows) > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > /Krishnanand Pandey/ > > > > > -- > > Adrian Klaver > > adrian.klaver@aklaver.com > > > ------------------------------------------------------------------------ > > This message is for the designated recipient only and may contain > privileged, proprietary, or otherwise confidential information. If you > have received it in error, please notify the sender immediately and > delete the original. Any other use of the e-mail by you is prohibited. > Where allowed by local law, electronic communications with Accenture > and its affiliates, including e-mail and instant messaging (including > content), may be scanned by our systems for the purposes of > information security and assessment of internal compliance with > Accenture policy. > ______________________________________________________________________________________ > > www.accenture.com --------------E40532F538E3CA180EC6FD3E Content-Type: multipart/related; boundary="------------F0C01B70CF0D5B6B97A5CA3F" --------------F0C01B70CF0D5B6B97A5CA3F Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
Hi Krishnanand,

I have done multi-level inserts (up to several thousand rows) from a VB.NET application using the psqlODBC driver - various versions - on XP, Win 7, and Win 10.

Hope this helps,
George

On 22/06/2016 4:20 AM, krishnanand.pandey@accenture.com wrote:

Hi Adrian

 

Same thing I am trying in a Windows XP 64bit machine from VB application it fails with the error (3137Missing semicolon (;) at end of SQL statement.).

And if the same multi-level insert statement from code executed from psql/pgadmin it works.

 

Could you please check the below statement from Windows odbc?

 

Thanks

 

 

Krishnanand Pandey

cid:image001.png@01D05501.1577B7C0
Newcastle Delivery Centre

UK Delivery Centre (Newcastle)                                                         

15A | 1 Quick Silver Way | Cobalt Business Park |Tyne and Wear| NE27 0QQ

* krishnanand.pandey@accenture.com

Confidential

 

This message is for the designated recipient only and may contain confidential, privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this email by you is prohibited.

Communications with Accenture or any of its group companies (“Accenture Group”) including telephone calls and emails (including content), may be monitored by us for the purposes of security and the assessment of internal compliance with company policy. Accenture Group does not accept service by e-mail of court proceedings, other processes or formal notices of any kind.

Accenture means Accenture (UK) Limited (registered number 4757301), Accenture Services Limited (registered number 2633864), or Accenture HR Services Limited (registered number 3957974), all registered in England and Wales with registered addresses at 30 Fenchurch Street, London EC3M 3BD, as the case may be.

 

 

 

 

-----Original Message-----
From: Adrian Klaver [mailto:adrian.klaver@aklaver.com]
Sent: 21 June 2016 21:57
To: Pandey, Krishnanand <krishnanand.pandey@accenture.com>; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Multilevel inserts issue with ODBC

 

On 06/21/2016 01:37 AM, krishnanand.pandey@accenture.com wrote:

> Hi Adrian

> 

> 

> 

> We are seeing this error in the VB application logs where we have

> captured the error with the Err.Number and Err.Description in the code.

> 

> Are there any limitations in the ODBC driver that it cannot handle

> multi-level inserts?

 

Not that I can see. Just got a chance to compile 09.05.0300 on my Linux machine. Going through the isql utility of unixODBC:

 

SQL> INSERT INTO odbc_test(id, fld_1) VALUES (1, 'one'), (2, 'two'), (3,

'three')

SQLRowCount returns 3

 

 

postgres@production=# select * from odbc_test ;

  id | fld_1

----+-------

   1 | one

   2 | two

   3 | three

(3 rows)

 

 

> 

> 

> 

> Thanks

> 

> 

> 

> 

> 

> 

> 

> /Krishnanand Pandey/

> 

 

 

 

--

Adrian Klaver

adrian.klaver@aklaver.com




This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com

--------------F0C01B70CF0D5B6B97A5CA3F Content-Type: image/png Content-Transfer-Encoding: base64 Content-ID: iVBORw0KGgoAAAANSUhEUgAAASYAAAAeCAYAAACBmrOuAAAAAXNSR0IArs4c6QAAAAlwSFlz AAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUATWljcm9zb2Z0IE9mZm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