pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Multilevel inserts issue with ODBC
9+ messages / 3 participants
[nested] [flat]

* Multilevel inserts issue with ODBC
@ 2016-06-20 08:32 krishnanand.pandey@accenture.com
  2016-06-20 21:25 ` Re: Multilevel inserts issue with ODBC Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 9+ messages in thread

From: krishnanand.pandey@accenture.com @ 2016-06-20 08:32 UTC (permalink / raw)
  To: pgsql-odbc

Hi Team

Our application is a Word VB front end with PostgreSQL 9.5 database.
We are communicating with PG via ODBC datasource with psqlodbc driver version psqlodbc_09_05_0300.

As a part of one of the performance issues we are trying to build a multi-level inserts.

i.e. insert statement similar to :
INSERT INTO films (code, title, did, date_prod, kind) VALUES
    ('B6717', 'Tampopo', 110, '1985-02-10', 'Comedy'),
    ('HG120', 'The Dinner Game', 140, DEFAULT, 'Comedy');


But the multilevel insert on a table when executed from the application fails with below error:

3137 Missing semicolon (;) at end of SQL statement.

But the same insert statement when executed from pgadmin/psql executes with no error.

Looking at the error it looks like a syntax error in the insert statement but on our further investigations it seems like an issue with the odbc driver.

Could you please check and advice as a matter of urgency?

Many 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
* 07425606856
* krishnanand.pandey@accenture.com<mailto: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.



________________________________

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

Attachments:

image001.png (image/png, 3.4K) download view image
^ permalink raw reply [nested|flat] 9+ messages in thread

* Re: Multilevel inserts issue with ODBC
  2016-06-20 08:32 Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
@ 2016-06-20 21:25 ` Adrian Klaver <adrian.klaver@aklaver.com>
  2016-06-21 08:37   ` Re: Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
  0 siblings, 1 reply; 9+ messages in thread

From: Adrian Klaver @ 2016-06-20 21:25 UTC (permalink / raw)
  To: krishnanand.pandey@accenture.com; pgsql-odbc

On 06/20/2016 01:32 AM, krishnanand.pandey@accenture.com wrote:
> Hi Team
>
>
>
> Our application is a *Word VB front end* with *PostgreSQL 9.5* database.
>
> We are communicating with PG via ODBC datasource with psqlodbc driver
> version psqlodbc_09_05_0300.
>
>
>
> As a part of one of the performance issues we are trying to build a
> multi-level inserts.
>
>
>
> i.e. insert statement similar to :
>
> INSERT INTO films (code, title, did, date_prod, kind) VALUES
>
>     ('B6717', 'Tampopo', 110, '1985-02-10', 'Comedy'),
>
>     ('HG120', 'The Dinner Game', 140, DEFAULT, 'Comedy');
>
>
>
>
>
> But the multilevel *insert on a table when executed from the application
> fails* with below error:
>
>

In what applications log are you seeing the below?:

>
> 3137 Missing semicolon (;) at end of SQL statement.
>
>
>
> But the same insert statement when executed from pgadmin/psql executes
> with no error.
>
>
>
> Looking at the error it looks like a syntax error in the insert
> statement but on our further investigations it seems like an issue with
> the odbc driver.
>
>
>
> Could you please check and advice as a matter of urgency?
>
>
>
> Many 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
>
> ( 07425606856
>
> * krishnanand.pandey@accenture.com <mailto: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./
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> 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


-- 
Adrian Klaver
adrian.klaver@aklaver.com


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Multilevel inserts issue with ODBC
  2016-06-20 08:32 Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
  2016-06-20 21:25 ` Re: Multilevel inserts issue with ODBC Adrian Klaver <adrian.klaver@aklaver.com>
@ 2016-06-21 08:37   ` krishnanand.pandey@accenture.com
  2016-06-21 13:46     ` Re: Multilevel inserts issue with ODBC Adrian Klaver <adrian.klaver@aklaver.com>
  2016-06-21 20:57     ` Re: Multilevel inserts issue with ODBC Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 2 replies; 9+ messages in thread

From: krishnanand.pandey@accenture.com @ 2016-06-21 08:37 UTC (permalink / raw)
  To: adrian.klaver@aklaver.com; pgsql-odbc

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?



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
* 07425606856
* krishnanand.pandey@accenture.com<mailto: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: 20 June 2016 22:25
To: Pandey, Krishnanand <krishnanand.pandey@accenture.com>; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Multilevel inserts issue with ODBC



On 06/20/2016 01:32 AM, krishnanand.pandey@accenture.com<mailto:krishnanand.pandey@accenture.com> wrote:

> Hi Team

>

>

>

> Our application is a *Word VB front end* with *PostgreSQL 9.5* database.

>

> We are communicating with PG via ODBC datasource with psqlodbc driver

> version psqlodbc_09_05_0300.

>

>

>

> As a part of one of the performance issues we are trying to build a

> multi-level inserts.

>

>

>

> i.e. insert statement similar to :

>

> INSERT INTO films (code, title, did, date_prod, kind) VALUES

>

>     ('B6717', 'Tampopo', 110, '1985-02-10', 'Comedy'),

>

>     ('HG120', 'The Dinner Game', 140, DEFAULT, 'Comedy');

>

>

>

>

>

> But the multilevel *insert on a table when executed from the

> application

> fails* with below error:

>

>



In what applications log are you seeing the below?:



>

> 3137 Missing semicolon (;) at end of SQL statement.

>

>

>

> But the same insert statement when executed from pgadmin/psql executes

> with no error.

>

>

>

> Looking at the error it looks like a syntax error in the insert

> statement but on our further investigations it seems like an issue

> with the odbc driver.

>

>

>

> Could you please check and advice as a matter of urgency?

>

>

>

> Many 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

>

> ( 07425606856

>

> * krishnanand.pandey@accenture.com<mailto:krishnanand.pandey@accenture.com>

> <mailto: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./

>

>

>

>

>

>

> ----------------------------------------------------------------------

> --

>

> 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<http://www.accenture.com;





--

Adrian Klaver

adrian.klaver@aklaver.com<mailto: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

Attachments:

image001.png (image/png, 3.4K) download view image
^ permalink raw reply [nested|flat] 9+ messages in thread

* Re: Multilevel inserts issue with ODBC
  2016-06-20 08:32 Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
  2016-06-20 21:25 ` Re: Multilevel inserts issue with ODBC Adrian Klaver <adrian.klaver@aklaver.com>
  2016-06-21 08:37   ` Re: Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
@ 2016-06-21 13:46     ` Adrian Klaver <adrian.klaver@aklaver.com>
  1 sibling, 0 replies; 9+ messages in thread

From: Adrian Klaver @ 2016-06-21 13:46 UTC (permalink / raw)
  To: krishnanand.pandey@accenture.com; pgsql-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.

I cannot find that error number or the description in the psqlodbc 
source code, which makes me think that the application(VB?) is throwing 
the error.

>
> Are there any limitations in the ODBC driver that it cannot handle
> multi-level inserts?
>
>
>
> Thanks
>
>
>
>
>
>
>
> /Krishnanand Pandey/
>

>
>
> -----Original Message-----
> From: Adrian Klaver [mailto:adrian.klaver@aklaver.com]
> Sent: 20 June 2016 22:25
> To: Pandey, Krishnanand <krishnanand.pandey@accenture.com>;
> pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] Multilevel inserts issue with ODBC
>
>
>
> On 06/20/2016 01:32 AM, krishnanand.pandey@accenture.com
> <mailto:krishnanand.pandey@accenture.com> wrote:
>
>> Hi Team
>
>>
>
>>
>
>>
>
>> Our application is a *Word VB front end* with *PostgreSQL 9.5* database.
>
>>
>
>> We are communicating with PG via ODBC datasource with psqlodbc driver
>
>> version psqlodbc_09_05_0300.
>
>>
>
>>
>
>>
>
>> As a part of one of the performance issues we are trying to build a
>
>> multi-level inserts.
>
>>
>
>>
>
>>
>
>> i.e. insert statement similar to :
>
>>
>
>> INSERT INTO films (code, title, did, date_prod, kind) VALUES
>
>>
>
>>     ('B6717', 'Tampopo', 110, '1985-02-10', 'Comedy'),
>
>>
>
>>     ('HG120', 'The Dinner Game', 140, DEFAULT, 'Comedy');
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> But the multilevel *insert on a table when executed from the
>
>> application
>
>> fails* with below error:
>
>>
>
>>
>
>
>
> In what applications log are you seeing the below?:
>
>
>
>>
>
>> 3137 Missing semicolon (;) at end of SQL statement.
>
>>
>
>>
>
>>
>
>> But the same insert statement when executed from pgadmin/psql executes
>
>> with no error.
>
>>
>
>>
>
>>
>
>> Looking at the error it looks like a syntax error in the insert
>
>> statement but on our further investigations it seems like an issue
>
>> with the odbc driver.
>
>>
>
>>
>
>>
>
>> Could you please check and advice as a matter of urgency?
>
>>
>
>>
>
>>
>
>> Many 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
>
>>
>
>> ( 07425606856
>
>>
>
>> * krishnanand.pandey@accenture.com
> <mailto:krishnanand.pandey@accenture.com>
>
>> <mailto: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./
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> ----------------------------------------------------------------------
>
>> --
>
>>
>
>> 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 <http://www.accenture.com;
>
>
>
>
>
> --
>
> Adrian Klaver
>
> adrian.klaver@aklaver.com <mailto: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


-- 
Adrian Klaver
adrian.klaver@aklaver.com


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Multilevel inserts issue with ODBC
  2016-06-20 08:32 Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
  2016-06-20 21:25 ` Re: Multilevel inserts issue with ODBC Adrian Klaver <adrian.klaver@aklaver.com>
  2016-06-21 08:37   ` Re: Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
@ 2016-06-21 20:57     ` Adrian Klaver <adrian.klaver@aklaver.com>
  2016-06-22 09:20       ` Re: Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
  1 sibling, 1 reply; 9+ messages in thread

From: Adrian Klaver @ 2016-06-21 20:57 UTC (permalink / raw)
  To: krishnanand.pandey@accenture.com; pgsql-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


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Multilevel inserts issue with ODBC
  2016-06-20 08:32 Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
  2016-06-20 21:25 ` Re: Multilevel inserts issue with ODBC Adrian Klaver <adrian.klaver@aklaver.com>
  2016-06-21 08:37   ` Re: Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
  2016-06-21 20:57     ` Re: Multilevel inserts issue with ODBC Adrian Klaver <adrian.klaver@aklaver.com>
@ 2016-06-22 09:20       ` krishnanand.pandey@accenture.com
  2016-06-22 13:21         ` Re: Multilevel inserts issue with ODBC Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 9+ messages in thread

From: krishnanand.pandey@accenture.com @ 2016-06-22 09:20 UTC (permalink / raw)
  To: adrian.klaver@aklaver.com; pgsql-odbc

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<mailto: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<mailto: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<mailto: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

Attachments:

image001.png (image/png, 3.4K) download view image
^ permalink raw reply [nested|flat] 9+ messages in thread

* Re: Multilevel inserts issue with ODBC
  2016-06-20 08:32 Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
  2016-06-20 21:25 ` Re: Multilevel inserts issue with ODBC Adrian Klaver <adrian.klaver@aklaver.com>
  2016-06-21 08:37   ` Re: Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
  2016-06-21 20:57     ` Re: Multilevel inserts issue with ODBC Adrian Klaver <adrian.klaver@aklaver.com>
  2016-06-22 09:20       ` Re: Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
@ 2016-06-22 13:21         ` Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Adrian Klaver @ 2016-06-22 13:21 UTC (permalink / raw)
  To: krishnanand.pandey@accenture.com; pgsql-odbc

On 06/22/2016 02: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?

I do not have a Windows machine to test with.

>
>
>
> 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 <mailto: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
> <mailto: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 <mailto: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


-- 
Adrian Klaver
adrian.klaver@aklaver.com


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Multilevel inserts issue with ODBC
@ 2016-06-20 16:34 krishnanand.pandey@accenture.com
  0 siblings, 0 replies; 9+ messages in thread

From: krishnanand.pandey@accenture.com @ 2016-06-20 16:34 UTC (permalink / raw)
  To: pgsql-odbc

Hi Team

Please let me know if any further information on this is required?

Many 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
* 07425606856
* krishnanand.pandey@accenture.com<mailto: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.


From: Pandey, Krishnanand
Sent: 20 June 2016 09:33
To: 'pgsql-odbc@postgresql.org' <pgsql-odbc@postgresql.org>
Subject: Multilevel inserts issue with ODBC

Hi Team

Our application is a Word VB front end with PostgreSQL 9.5 database.
We are communicating with PG via ODBC datasource with psqlodbc driver version psqlodbc_09_05_0300.

As a part of one of the performance issues we are trying to build a multi-level inserts.

i.e. insert statement similar to :
INSERT INTO films (code, title, did, date_prod, kind) VALUES
    ('B6717', 'Tampopo', 110, '1985-02-10', 'Comedy'),
    ('HG120', 'The Dinner Game', 140, DEFAULT, 'Comedy');


But the multilevel insert on a table when executed from the application fails with below error:

3137 Missing semicolon (;) at end of SQL statement.

But the same insert statement when executed from pgadmin/psql executes with no error.

Looking at the error it looks like a syntax error in the insert statement but on our further investigations it seems like an issue with the odbc driver.

Could you please check and advice as a matter of urgency?

Many 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
* 07425606856
* krishnanand.pandey@accenture.com<mailto: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.



________________________________

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

Attachments:

image001.png (image/png, 3.4K) download view image
^ permalink raw reply [nested|flat] 9+ messages in thread

* Re: Multilevel inserts issue with ODBC
@ 2016-06-22 18:50 George Weaver <gweaver@shaw.ca>
  0 siblings, 0 replies; 9+ messages in thread

From: George Weaver @ 2016-06-22 18:50 UTC (permalink / raw)
  To: pgsql-odbc


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
>
> *<mailto:krishnanand.pandey@accenture.com>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, 
> <mailto:krishnanand.pandey@accenture.com>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 <mailto: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

^ permalink  raw  reply  [nested|flat] 9+ messages in thread


end of thread, other threads:[~2016-06-22 18:50 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-06-20 08:32 Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
2016-06-20 21:25 ` Adrian Klaver <adrian.klaver@aklaver.com>
2016-06-21 08:37   ` krishnanand.pandey@accenture.com
2016-06-21 13:46     ` Adrian Klaver <adrian.klaver@aklaver.com>
2016-06-21 20:57     ` Adrian Klaver <adrian.klaver@aklaver.com>
2016-06-22 09:20       ` krishnanand.pandey@accenture.com
2016-06-22 13:21         ` Adrian Klaver <adrian.klaver@aklaver.com>
2016-06-20 16:34 Re: Multilevel inserts issue with ODBC krishnanand.pandey@accenture.com
2016-06-22 18:50 Re: Multilevel inserts issue with ODBC George Weaver <gweaver@shaw.ca>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox