| Summary: | SQL NPE thrown when exiting a program that uses a prepare statement | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Joseph Vincens <jvincens> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
fixed verified |
function func3(ds sqldatasource) rs1 SQLResultSet?; // OPEN a result set using the same SQLDataSource // This query happens to get all CUSTOMERs try sqlStmt SQLStatement?; prepare sqlStmt from ds with "select Name, id from Table1"; open rs1 from ds with sqlStmt; foreach(myRecord from rs1) Syslib.writeStdOut("Customer name: " + myRecord.name); End onException(ex SQLException) syslib.writeStdout(ex.message); syslib.writeStdout("ErrorCode:" + ex.ErrorCode); syslib.writeStdout("SQLState:" + ex.SQLState); end end