Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362548 - JavaGen generate wrong code for "replace" sql statement
Summary: JavaGen generate wrong code for "replace" sql statement
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 04:15 EDT by Yu Hao CLA
Modified: 2017-02-23 14:17 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yu Hao CLA 2011-11-01 04:15:05 EDT
Build Identifier: 201110302101

For sql statement "replace expense to ds" in EDT, the java code which generated by JavaGen is:

String stmtStr = "UPDATE budget.expense SET category = ?, amount = ? WHERE ";

The primary key was missed behind WHERE

Reproducible: Always
Comment 1 Joseph Vincens CLA 2011-11-01 10:48:16 EDT
fixed
Comment 2 Yu Hao CLA 2011-11-14 00:49:26 EST
Verified in 201111130901