Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 23rd, 2005, 01:36 AM
Elie Nacache
Guest
 
Posts: n/a
Default Resultset problem or BUG !

Hi All,

A data writed in a table but not commited is not accessible in modification by the resultset. The error returned is "Cannot move to index of 0".

BTW in SQL a sequence of INSERT, UPDATE and then COMMIT work fine.
I'm using the same code with oracle and it's working well.

Is it a BUG !?

I'm using psql 7.4.3 on Linux 9.0


Any help !

Elie

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
  #2  
Old November 23rd, 2005, 01:36 AM
Richard Huxton
Guest
 
Posts: n/a
Default Re: Resultset problem or BUG !

Elie Nacache wrote:[color=blue]
> Hi All,[/color]

Hi Elie, I'm afraid we'll need more details before we can help.
[color=blue]
> A data writed in a table but not commited is not accessible in
> modification by the resultset. The error returned is "Cannot move to
> index of 0".[/color]

Is this an ODBC or JDBC error? There are specific lists for both of those.
[color=blue]
> BTW in SQL a sequence of INSERT, UPDATE and then COMMIT work fine.[/color]
[color=blue]
> I'm using the same code with oracle and it's working well.[/color]

What code?
[color=blue]
> Is it a BUG !?[/color]

Can't say.
[color=blue]
> I'm using psql 7.4.3 on Linux 9.0[/color]

psql is the command-line tool, so I'm guessing you mean PostgreSQL (or
pgsql) 7.4.3. Likewise, there is no Linux 9.0 - I'm assuming you mean
RedHat, SuSE or Mandrake.

If you can provide details on how you are accessing the database and a
short example of your code, I'm sure someone will be able to help.
--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

  #3  
Old November 23rd, 2005, 01:37 AM
Kris Jurka
Guest
 
Posts: n/a
Default Re: Resultset problem or BUG !



On Wed, 11 Aug 2004, Elie Nacache wrote:
[color=blue]
> A data writed in a table but not commited is not accessible in
> modification by the resultset. The error returned is "Cannot move to
> index of 0".
>[/color]

It is entirely unclear what you are actually doing here. Are you using
JDBC? Could you show us some sample code that demonstrates the problem?

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles