detail.php
OW2 Forge: Detail: 300643 new mapping action - always update

Advanced - Powered by Google


   
Log In
New Account
  
 
Home
My Page
Project Tree
Project Openings
XQuare
          
 
 
Summary
Forums
Tracker
Lists
Tasks
Docs
News
CVS
Files
SVN
                    
 

Tracker: Bugs

Submit New | Browse | Admin | ExportToXml

[ #300643 ] new mapping action - always update

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:

Please login

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_tonone2004-07-27 16:27srouges
File Added93: REPLACE.patch2004-07-27 15:56at2000

Copyright © 1999-2008, OW2 Consortium | contact | You have a difficulty, a problem ? Please report an issue using your OW2 forge account credentials