Date: 2004-07-22 12:05 |
Priority: 5 |
Submitted By: Alan Tam (at2000) |
Assigned To: Stephane Rouges (srouges) |
Category: all products |
State: Open |
Summary: new mapping action - always update |
Detailed description:
In some cases, we may want to always send UPDATE statement regardless of
whether there is a row in the table. The current "update" action can do that,
but will send one more SELECT query prior to the UPDATE.
I would like to call this "update", and rename the current "update" as
"replace" (MySQL call that "add if not exist and update otherwise" behavior
"replace" as well).
Add A Comment:
|
|
Followup
Message |
Date: 2004-07-27 16:27
Sender: srouges
Logged In: YES
user_id=740
Thank you !
We will discuss about the opportunity to accept your patch
with my team-mates when they are back.
Bye
Stephane |
Date: 2004-07-27 15:56
Sender: at2000
Logged In: YES
user_id=2500
Attached is a patch to rename "update" as
"replace" and add
an "update" action which sends UPDATE SQL
unconditionally.
All related code should be updated accordingly, except the
forrest documentation.
Please be considerate to let the 4 fundamental SQL
statements be accessible fine-grained, so that we have the
flexibility to perform customized behaviors. | | |
Attached Files:
Name |
Description |
Download |
REPLACE.patch |
|
Download |
| |
Changes:
Field |
Old Value |
Date |
By |
assigned_to | none | 2004-07-27 16:27 | srouges |
File Added | 93: REPLACE.patch | 2004-07-27 15:56 | at2000 | | |