Community
Participate
Working Groups
CNTL-1 for get row from ds shows default select statement used for the get. CNTL-1 for open rs from ds for row should show the default select statement used for the open. To see problem, open test case program, position cursor after "open" and press CNTL-1.
Created attachment 205845 [details] library for loading database for test program
Paul, do not see any get or open statement in your attachment. Do you mean: myCustomer Customer; connUrl string = “jdbc:derby:SomeDB;create=true;”; ds SQLDataSource = new SQLDataSource(connUrl); get myCustomer from ds; should generate sql like this: get myCustomer from ds using(myCustomer.id) with #sql{ SELECT * FROM CUSTOMER WHERE id = ? }; This works based on your comment For open statement: rs SQLResultSet; open rs from ds; Should we get sql like this: open rs from ds with #sql{ SELECT * FROM CUSTOMER }; if you want default sql for statement: open rs from ds; Here is the question, where do I get table schema?
Paul, are you referring to this open statement: open rs from ds for row ; Where I can get table message from 'row'?
please refer to bug 362139
EGLSQLClauseFactory.java SQLIOStatementUtility.java AbstractSQLStatementProposal.java SQLAssistantSubProcessor.java
Verified and closed