pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
SQLExecute fails question
4+ messages / 3 participants
[nested] [flat]

* SQLExecute fails question
@ 2004-07-20 22:25  Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
  0 siblings, 0 replies; 4+ messages in thread

From: Joost Kraaijeveld @ 2004-07-20 22:25 UTC (permalink / raw)
  To: pgsql-odbc

Hi all,

When I get this error message from a SQLExecute():

[2152] SQLSTATE = HY000
[2152] Native rc Code = 7
[2152] Message: ERROR:  value too long for type character(20)

does that mean that one of my columns as that is defined as char(20) receives more data than 20 chars or does that mean that column 20 receives to many chars?


Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J.Kraaijeveld@Askesis.nl
web: www.askesis.nl 



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

* Re: SQLExecute fails question
@ 2004-07-21 07:12  Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 1 reply; 4+ messages in thread

From: Dave Page @ 2004-07-21 07:12 UTC (permalink / raw)
  To: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>; pgsql-odbc

 

> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org 
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Joost 
> Kraaijeveld
> Sent: 20 July 2004 23:25
> To: pgsql-odbc@postgresql.org
> Subject: [ODBC] SQLExecute fails question
> 
> Hi all,
> 
> When I get this error message from a SQLExecute():
> 
> [2152] SQLSTATE = HY000
> [2152] Native rc Code = 7
> [2152] Message: ERROR:  value too long for type character(20)
> 
> does that mean that one of my columns as that is defined as 
> char(20) receives more data than 20 chars or does that mean 
> that column 20 receives to many chars?

The first. The data is too long for char(20).

Regards, Dave



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

* Re: SQLExecute fails question
@ 2004-07-21 10:22  Tomas Skäre <tomas@nocrew.org>
  parent: Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 4+ messages in thread

From: tomas@nocrew.org @ 2004-07-21 10:22 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; +Cc: pgsql-odbc

"Dave Page" <dpage@vale-housing.co.uk> writes:

> > [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Joost 
> > Kraaijeveld
> > 
> > Hi all,
> > 
> > When I get this error message from a SQLExecute():
> > 
> > [2152] SQLSTATE = HY000
> > [2152] Native rc Code = 7
> > [2152] Message: ERROR:  value too long for type character(20)
> > 
> > does that mean that one of my columns as that is defined as 
> > char(20) receives more data than 20 chars or does that mean 
> > that column 20 receives to many chars?
> 
> The first. The data is too long for char(20).

It would be very helpful sometimes to know what column that
failed. But maybe that's really a PostgreSQL issue, and not the ODBC
driver?


Greetings,

Tomas



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

* Re: SQLExecute fails question
@ 2004-07-21 10:31  Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 4+ messages in thread

From: Dave Page @ 2004-07-21 10:31 UTC (permalink / raw)
  To: Tomas Skäre <tomas@nocrew.org>; +Cc: pgsql-odbc

 

> -----Original Message-----
> From: Tomas Skare [mailto:tomas@junk.nocrew.org] On Behalf Of 
> Tomas Skäre
> Sent: 21 July 2004 11:23
> To: Dave Page
> Cc: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] SQLExecute fails question
> 
> "Dave Page" <dpage@vale-housing.co.uk> writes:
> 
> > > [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Joost 
> > > Kraaijeveld
> > > 
> > > Hi all,
> > > 
> > > When I get this error message from a SQLExecute():
> > > 
> > > [2152] SQLSTATE = HY000
> > > [2152] Native rc Code = 7
> > > [2152] Message: ERROR:  value too long for type character(20)
> > > 
> > > does that mean that one of my columns as that is defined as
> > > char(20) receives more data than 20 chars or does that mean that 
> > > column 20 receives to many chars?
> > 
> > The first. The data is too long for char(20).
> 
> It would be very helpful sometimes to know what column that 
> failed. But maybe that's really a PostgreSQL issue, and not 
> the ODBC driver?

Yes it is.

Regards, Dave.



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


end of thread, other threads:[~2004-07-21 10:31 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-07-20 22:25 SQLExecute fails question Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2004-07-21 07:12 Re: SQLExecute fails question Dave Page <dpage@vale-housing.co.uk>
2004-07-21 10:22 ` Tomas Skäre <tomas@nocrew.org>
2004-07-21 10:31 Re: SQLExecute fails question Dave Page <dpage@vale-housing.co.uk>

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