Description
PreparedStatement nextStmt = conn.prepareStatement("SELECT NEXT ? VALUES FOR SEQ_TABLE");
nextStmt.getMetaData();
Fails.
According to the PreparedStatement javadoc, this should work:
Because a PreparedStatement object is precompiled, it is possible to know about the ResultSet object that it will return without having to execute it. Consequently, it is possible to invoke the method getMetaData on a PreparedStatement object rather than waiting to execute it and then invoking the ResultSet.getMetaData method on the ResultSet object that is returned.
Attachments
Issue Links
- causes
-
PHOENIX-6679 PHOENIX-6665 changed column name for CURRENT seqence values
- Resolved
- links to