pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ODBC escape convert error
3+ messages / 2 participants
[nested] [flat]

* ODBC escape convert error
@ 2008-06-11 17:48  Richard Broersma <richard.broersma@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Richard Broersma @ 2008-06-11 17:48 UTC (permalink / raw)
  To: pgsql-odbc

I've attached a log file with the code for a  prepared insert command.
 However, when it is executed, I am getting the error:

ODBC escape convert error.

It looks like the query never makes it to the sever becuase I don't
see any statement logged for it.  Does anyone have any ideas?

-- 
Regards,
Richard Broersma Jr.

Visit the Los Angles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

Attachments:

  preparedinsert.log (application/octet-stream, 1.9K) download

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

* Re: ODBC escape convert error
@ 2008-06-11 18:49  Hiroshi Inoue <inoue@tpf.co.jp>
  parent: Richard Broersma <richard.broersma@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Hiroshi Inoue @ 2008-06-11 18:49 UTC (permalink / raw)
  To: Richard Broersma <richard.broersma@gmail.com>; +Cc: pgsql-odbc

Richard Broersma wrote:
> I've attached a log file with the code for a  prepared insert command.
>  However, when it is executed, I am getting the error:
> 
> ODBC escape convert error.
> 
> It looks like the query never makes it to the sever becuase I don't
> see any statement logged for it.  Does anyone have any ideas?

You may have to replace '{' (ODBC escape) by '(' in the line.

      .CommandText = .CommandText & "      WHERE { T.instrumentcode,
T.instrumentsuff, T.area, T.loopnbr ) IS NULL;

regards,
Hiroshi Inoue



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

* Re: ODBC escape convert error
@ 2008-06-11 19:36  Richard Broersma <richard.broersma@gmail.com>
  parent: Hiroshi Inoue <inoue@tpf.co.jp>
  0 siblings, 0 replies; 3+ messages in thread

From: Richard Broersma @ 2008-06-11 19:36 UTC (permalink / raw)
  To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: pgsql-odbc

On Wed, Jun 11, 2008 at 11:49 AM, Hiroshi Inoue <inoue@tpf.co.jp> wrote:

> You may have to replace '{' (ODBC escape) by '(' in the line.
>
>      .CommandText = .CommandText & "      WHERE { T.instrumentcode,
> T.instrumentsuff, T.area, T.loopnbr ) IS NULL;

Correct again!  Everything works perfectly now!


-- 
Regards,
Richard Broersma Jr.

Visit the Los Angles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug



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


end of thread, other threads:[~2008-06-11 19:36 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-06-11 17:48 ODBC escape convert error Richard Broersma <richard.broersma@gmail.com>
2008-06-11 18:49 ` Hiroshi Inoue <inoue@tpf.co.jp>
2008-06-11 19:36   ` Richard Broersma <richard.broersma@gmail.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