pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PostgreSQL ODBC: Bug with Insert when using parameters arrays ??
4+ messages / 3 participants
[nested] [flat]

* PostgreSQL ODBC: Bug with Insert when using parameters arrays ??
@ 2003-08-26 04:34  Jol Valentine <jolv@genaware.com>
  0 siblings, 2 replies; 4+ messages in thread

From: Jol Valentine @ 2003-08-26 04:34 UTC (permalink / raw)
  To: pgsql-odbc

Hi,

as a follow up to my previous note I have since download the PostgreSQL ODBC
source code
and compiled it under Visual Studio .NET 2003. It's all up and running OK.

It looks like the problem is in PGAPI_Execute(...) in execute.c.

In the for loop at line 558
for (i = 0; i < apdopts->allocated; i++)
the data_at_exec parameters are being counted, but this is only looping
through the columns,
the fact that there are multiple rows of data is not being taken account of.
In my case apdopts->paramset_size is 3.

Looking at the code in more detail it looks like you simply don't support
the inserting of multiple
"data at execution" parameters per column. Do you know if anyone is working
on this at the moment
or is it a known deficiency ? Is it worth me taking a look at it ?

regards,
Jol Valentine.





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

* Re: PostgreSQL ODBC: Bug with Insert when using parameters arrays ??
@ 2003-08-26 19:16  Jeff Eckermann <jeff_eckermann@yahoo.com>
  parent: Jol Valentine <jolv@genaware.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Jeff Eckermann @ 2003-08-26 19:16 UTC (permalink / raw)
  To: Jol Valentine <jolv@genaware.com>; pgsql-odbc

--- Jol Valentine <jolv@genaware.com> wrote:
> Hi,
> 
> as a follow up to my previous note I have since
> download the PostgreSQL ODBC
> source code
> and compiled it under Visual Studio .NET 2003. It's
> all up and running OK.
> 
> It looks like the problem is in PGAPI_Execute(...)
> in execute.c.
> 
> In the for loop at line 558
> for (i = 0; i < apdopts->allocated; i++)
> the data_at_exec parameters are being counted, but
> this is only looping
> through the columns,
> the fact that there are multiple rows of data is not
> being taken account of.
> In my case apdopts->paramset_size is 3.
> 
> Looking at the code in more detail it looks like you
> simply don't support
> the inserting of multiple
> "data at execution" parameters per column. Do you
> know if anyone is working
> on this at the moment
> or is it a known deficiency ? Is it worth me taking
> a look at it ?
> 

AFAIK the only effort going on is maintenance, rather
than development.  We have far too few ODBC driver
developers, so if you want to do something, have at
it.  If you are planning to make any significant
changes, I would suggest that you subscribe to the
pgsql-hackers list, where you can get knowledgable
critiques of any proposal.  

> regards,
> Jol Valentine.
> 
> 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



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

* Re: PostgreSQL ODBC: Bug with Insert when using parameters arrays
@ 2003-08-27 10:13  Hiroshi Inoue <Inoue@tpf.co.jp>
  parent: Jol Valentine <jolv@genaware.com>
  1 sibling, 1 reply; 4+ messages in thread

From: Hiroshi Inoue @ 2003-08-27 10:13 UTC (permalink / raw)
  To: Jol Valentine <jolv@genaware.com>; +Cc: pgsql-odbc

Jol Valentine wrote:
> 
> Hi,
> 
> as a follow up to my previous note I have since download the PostgreSQL ODBC
> source code
> and compiled it under Visual Studio .NET 2003. It's all up and running OK.
> 
> It looks like the problem is in PGAPI_Execute(...) in execute.c.
> 
> In the for loop at line 558
> for (i = 0; i < apdopts->allocated; i++)
> the data_at_exec parameters are being counted, but this is only looping
> through the columns,

I'm taking account of current_row in the code.

> the fact that there are multiple rows of data is not being taken account of.
> In my case apdopts->paramset_size is 3.

Do you have concrete examples ?

regards,
Hiroshi Inoue
	http://www.geocities.jp/inocchichichi/psqlodbc/



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

* Re: PostgreSQL ODBC: Bug with Insert when using parameters arrays ??
@ 2003-08-27 23:48  Jol Valentine <jolv@genaware.com>
  parent: Hiroshi Inoue <Inoue@tpf.co.jp>
  0 siblings, 0 replies; 4+ messages in thread

From: Jol Valentine @ 2003-08-27 23:48 UTC (permalink / raw)
  To: Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: pgsql-odbc

Hi Hiroshi !

----- Original Message -----
From: "Hiroshi Inoue" <Inoue@tpf.co.jp>
To: "Jol Valentine" <jolv@genaware.com>
Cc: <pgsql-odbc@postgresql.org>
Sent: Wednesday, August 27, 2003 8:13 PM
Subject: Re: [ODBC] PostgreSQL ODBC: Bug with Insert when using parameters
arrays ??


> Jol Valentine wrote:
> >
> > Hi,
> >
> > as a follow up to my previous note I have since download the PostgreSQL
ODBC
> > source code
> > and compiled it under Visual Studio .NET 2003. It's all up and running
OK.
> >
> > It looks like the problem is in PGAPI_Execute(...) in execute.c.
> >
> > In the for loop at line 558
> > for (i = 0; i < apdopts->allocated; i++)
> > the data_at_exec parameters are being counted, but this is only looping
> > through the columns,
>
> I'm taking account of current_row in the code.

yes, but I'm only taking about data_at_exec or 'late' bound parameters.
(which wouldn't have been clear from my comments above, but my
previous emails were rejected.)
The processing for these is not correct, only the first row of data is being
processed.

>
> > the fact that there are multiple rows of data is not being taken account
of.
> > In my case apdopts->paramset_size is 3.
>
> Do you have concrete examples ?

Yes I have some LONGVARCHAR data that is not being inserted correctly.
I tried to send all the details (twice) including log files etc to
pgsql-odbc@postgresql.org but it was rejected as being too large.
Do you want me to send you these ?

In any case I've fixed the problem, I'm just currently doing some testing.

regards,
Jol.

>
> regards,
> Hiroshi Inoue
> http://www.geocities.jp/inocchichichi/psqlodbc/
>




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


end of thread, other threads:[~2003-08-27 23:48 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-26 04:34 PostgreSQL ODBC: Bug with Insert when using parameters arrays ?? Jol Valentine <jolv@genaware.com>
2003-08-26 19:16 ` Jeff Eckermann <jeff_eckermann@yahoo.com>
2003-08-27 10:13 ` Re: PostgreSQL ODBC: Bug with Insert when using parameters arrays Hiroshi Inoue <Inoue@tpf.co.jp>
2003-08-27 23:48   ` Jol Valentine <jolv@genaware.com>

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