Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

11g Method --> byte[] JGeometry.store( JGeometry ) fails for certain SQL

269171Oct 8 2009 — edited Oct 8 2009
Hi All,

Using the new in 11g byte[] JGeometry.store( JGeometry ) method as oppose to the traditional STRUCT JGeometry.store( JGeometry, Connection) method fails for certain SQL statements.


It works fine for statements like this:
UPDATE PARCELS SET GEOM = ? WHERE ID = 47;

These statements give errors though:

UPDATE PARCELS SET GEOM = SDO_MIGRATE.TO_CURRENT( ?, (SELECT DIMINFO FROM USER_SDO_GEOM_METADATA WHERE TABLE_NAME = 'PARCELS' AND COLUMN_NAME = 'GEOM') ) WHERE ID = 47;

ORA-06553: PLS-306: wrong number or types of arguments in call to 'TO_CURRENT'

SELECT ID, LABEL, GEOM FROM PARCELS WHERE SDO_NN( GEOM, ?, 'SDO_BATCH_SIZE=5000' ) = 'TRUE';

ORA-29900: operator binding does not exist
ORA-06553: PLS-306: wrong number or types of arguments in call to 'SDO_NN'


? Being where I bind in the byte[] / Object as appropriate.

So I get the above errors when using setBytes( index, JGeometry.store( jgeom ) ); but it work when using: setObject( index, JGeometry.store( jgeom, con ) );

Is this a bug is known / will be fixed ?

Thanks,
Ronan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2009
Added on Oct 8 2009
3 comments
1,244 views