Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368443

Summary: SQL - problem when I try to delete a record in a file with two keys.
Product: z_Archived Reporter: Trond Einar Nilsen <trond.einar.nilsen>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jvincens
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Trond Einar Nilsen CLA 2012-01-12 07:27:59 EST
Build Identifier: Version: 0.7.0

---------error----------
[SQL0104] Token G8C5NB was not valid. Valid tokens: OR USE SKIP WAIT WITH.: [sqlstate:42601][sqlcode:-104]

---------record---------
Record G8
{@table{name = "SESQL.SNG8CPP"}}

G8JWNB decimal(6){@ID};
G8C5NB decimal(5){@ID};
G8AUNA string;
end
--------EGL service----------
function deleteG8(delG8 g8 in)
delete delG8 from ds;
end
--------generated Java----------
String stmtStr = "DELETE FROM SESQL.SNG8CPP WHERE G8JWNB = ?G8C5NB = ?";
--------------------------------
When I correct the generated Java to:
String stmtStr = "DELETE FROM SESQL.SNG8CPP WHERE G8JWNB = ? AND G8C5NB = ?";

http://www.eclipse.org/forums/index.php/t/275880/

Reproducible: Always
Comment 1 Lisa Lasher CLA 2012-01-18 15:41:22 EST
updating to show that this was found in the 0.7.0 driver.
Comment 2 Joseph Vincens CLA 2012-01-19 10:11:02 EST
fixed the same problem also existed in replace