pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Insert fails from VB only when table is empty...?
2+ messages / 2 participants
[nested] [flat]

* Insert fails from VB only when table is empty...?
@ 2003-03-28 20:45  LaBranche, Kevin <klabranche@co.coconino.az.us>
  0 siblings, 1 reply; 2+ messages in thread

From: LaBranche, Kevin @ 2003-03-28 20:45 UTC (permalink / raw)
  To: pgsql-odbc

I am brand new to pgsql... :-)  I have a VB program inserting records into a
fairly simple table (without a PK) and I notice that when the table is empty
I get a "row out of range" error.  This only happens when the table is
empty.  If I insert a record from psql then run the program everything is
fine.  Any ideas as to what may be wrong?

 

I am using ADO to connect and recordset.addnew / recordset.update to insert
records.

 

Thanks,

Kevin

 

 

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

* Re: Insert fails from VB only when table is empty...?
@ 2003-03-29 03:46  Hiroshi Inoue <inoue@tpf.co.jp>
  parent: LaBranche, Kevin <klabranche@co.coconino.az.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Hiroshi Inoue @ 2003-03-29 03:46 UTC (permalink / raw)
  To: 'LaBranche, Kevin' <klabranche@co.coconino.az.us>; +Cc: pgsql-odbc

How do you open the recordset ?
 
regards,
Hiroshi Inoue

-----Original Message-----
From: LaBranche, Kevin


I am brand new to pgsql... :-)  I have a VB program inserting records
into a fairly simple table (without a PK) and I notice that when the
table is empty I get a "row out of range" error.  This only happens when
the table is empty.  If I insert a record from psql then run the program
everything is fine.  Any ideas as to what may be wrong?

 

I am using ADO to connect and recordset.addnew / recordset.update to
insert records.

 

Thanks,

Kevin

 

 

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


end of thread, other threads:[~2003-03-29 03:46 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-03-28 20:45 Insert fails from VB only when table is empty...? LaBranche, Kevin <klabranche@co.coconino.az.us>
2003-03-29 03:46 ` Hiroshi Inoue <inoue@tpf.co.jp>

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