Lists: | pgsql-general |
---|
From: | Oliver Jones <oliver(at)deeper(dot)co(dot)nz> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Updates failing yet saying they succeeded. |
Date: | 2002-06-04 05:11:37 |
Message-ID: | 1023167497.2626.34.camel@duality.area51.deeper.co.nz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
I've been having a few problems with PgSQL not updateing data
correctly. Here is some evidence:
autosupply_co_jp=> update vehicle set fob_price =420000 where
chassis_number
autosupply_co_jp-> = 'RA2-1002998';
UPDATE 1
autosupply_co_jp=> select fob_price from vehicle where chassis_number =
'RA2-1042998';
fob_price
-----------
430000
(1 row)
autosupply_co_jp=> update vehicle set fob_price = 420000 where
chassis_number = 'RA2-1042998';
UPDATE 1
autosupply_co_jp=> select fob_price from vehicle where chassis_number =
'RA2-1042998';
fob_price
-----------
420000
(1 row)
WTF is up with that?
[oliver] hostility:~$ rpm -qa |grep post
postgresql-7.1.3-1PGDG
postgresql-server-7.1.3-1PGDG
postgresql-docs-7.1.3-1PGDG
postgresql-jdbc-7.1.3-1PGDG
postgresql-libs-7.1.3-1PGDG
postgresql-devel-7.1.3-1PGDG
postgresql-odbc-7.1.3-1PGDG
postgresql-perl-7.1.3-1PGDG
postgresql-tk-7.1.3-1PGDG
postgresql-tcl-7.1.3-1PGDG
Regards
--
Oliver Jones > Software Engineer >
Deeper Design Limited.
oliver(at)deeper(dot)co(dot)nz
> www.deeperdesign.com
From: | Gregory Seidman <gss+pg(at)cs(dot)brown(dot)edu> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Updates failing yet saying they succeeded. |
Date: | 2002-06-04 05:20:12 |
Message-ID: | 20020604052012.GA14972@jamaica.cs.brown.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
It looks like it's doing exactly what you are asking. Observe:
Oliver Jones sez:
} I've been having a few problems with PgSQL not updateing data
} correctly. Here is some evidence:
}
} autosupply_co_jp=> update vehicle set fob_price =420000 where
} chassis_number
} autosupply_co_jp-> = 'RA2-1002998';
} UPDATE 1
Okay, updating RA2-1002998...
} autosupply_co_jp=> select fob_price from vehicle where chassis_number =
} 'RA2-1042998';
} fob_price
} -----------
} 430000
} (1 row)
...but selecting on RA2-1042998.
} autosupply_co_jp=> update vehicle set fob_price = 420000 where
} chassis_number = 'RA2-1042998';
} UPDATE 1
This time, updating on RA2-1042998...
} autosupply_co_jp=> select fob_price from vehicle where chassis_number =
} 'RA2-1042998';
} fob_price
} -----------
} 420000
} (1 row)
...and selecting on the same, RA2-1042998.
} WTF is up with that?
It didn't work the first time because you were not selecting the same thing
you'd updated. Pilot error.
[...]
} Oliver Jones > Software Engineer >
--Greg
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Oliver Jones <oliver(at)deeper(dot)co(dot)nz> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Updates failing yet saying they succeeded. |
Date: | 2002-06-04 05:22:54 |
Message-ID: | 14853.1023168174@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
Oliver Jones <oliver(at)deeper(dot)co(dot)nz> writes:
> I've been having a few problems with PgSQL not updateing data
> correctly.
This is a tad hard to believe. Can you supply a complete example that
would let someone else reproduce the problem? (No, I don't think that
any random update/select sequence will act that way.)
regards, tom lane
From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | Oliver Jones <oliver(at)deeper(dot)co(dot)nz> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Updates failing yet saying they succeeded. |
Date: | 2002-06-04 05:28:48 |
Message-ID: | 20020603222816.V98598-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
On 4 Jun 2002, Oliver Jones wrote:
> I've been having a few problems with PgSQL not updateing data
> correctly. Here is some evidence:
>
> autosupply_co_jp=> update vehicle set fob_price =420000 where
> chassis_number
> autosupply_co_jp-> = 'RA2-1002998';
> UPDATE 1
> autosupply_co_jp=> select fob_price from vehicle where chassis_number =
> 'RA2-1042998';
> fob_price
> -----------
> 430000
> (1 row)
>
> autosupply_co_jp=> update vehicle set fob_price = 420000 where
> chassis_number = 'RA2-1042998';
> UPDATE 1
> autosupply_co_jp=> select fob_price from vehicle where chassis_number =
> 'RA2-1042998';
> fob_price
> -----------
> 420000
> (1 row)
>
> WTF is up with that?
Is that a copy/paste error that the chassis numbers don't match in those
first statements?
From: | Oliver Jones <oliver(at)deeper(dot)co(dot)nz> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Updates failing yet saying they succeeded. |
Date: | 2002-06-04 05:29:47 |
Message-ID: | 1023168588.2626.46.camel@duality.area51.deeper.co.nz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
I'm sorry. My bad. It appears I just made a typo... Nevermind.
Later
On Tue, 2002-06-04 at 17:22, Tom Lane wrote:
Oliver Jones <oliver(at)deeper(dot)co(dot)nz> writes:
> I've been having a few problems with PgSQL not updateing data
> correctly.
This is a tad hard to believe. Can you supply a complete example that
would let someone else reproduce the problem? (No, I don't think that
any random update/select sequence will act that way.)
regards, tom lane
--
Oliver Jones > Software Engineer >
Deeper Design Limited.
oliver(at)deeper(dot)co(dot)nz
> www.deeperdesign.com