Thanks for the question, Andrey.
Asked: March 14, 2020 - 2:58 pm UTC
Last updated: March 18, 2020 - 4:46 am UTC
Version: 12
Viewed 1000+ times
You Asked
Hello,
is there any way to construct a Structure of ANYTYPE using Java? There used to be class oracle.sql.STRUCT but it is now deprecated and not accepted in the code. The only alternative offered is "Use factory method Connection.createStruct to create an instance of java.sql.Struct directly." But this method needs name of type, so it seems, it is not possible to create structure of transient ANYTYPE.
Is this so, or do I miss some way?
Best regards
Andrey Voropaev
and Connor said...
Please take a look at this MOS note which talks about how to migrate
New JDBC Interfaces for Oracle types (Doc ID 1364193.1)
If that still does not help, please ping back here and I'll ask around in the Java/JDBC team
Rating
(1 rating)
Is this answer out of date? If it is, please let us know via a Comment