Re: Updates failing yet saying they succeeded.
От | Gregory Seidman |
---|---|
Тема | Re: Updates failing yet saying they succeeded. |
Дата | |
Msg-id | 20020604052012.GA14972@jamaica.cs.brown.edu обсуждение исходный текст |
Ответ на | Updates failing yet saying they succeeded. (Oliver Jones <oliver@deeper.co.nz>) |
Список | 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
В списке pgsql-general по дате отправления: