Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Advanced Rewrite Challenge
Take a look at these two SQL statements:
They both run. Then add advanced rewrite to the mixture.
BEGIN
dbms_advanced_rewrite.declare_rewrite_equivalence('UW','SELECT
DISTINCT s.srvr_id FROM servers s, serv_inst i WHERE s.srvr_id =
i.srvr_id', 'SELECT srvr_id FROM servers s WHERE EXISTS (SELECT srvr_id
FROM serv_inst i WHERE s.srvr_id = i.srvr_id)', TRUE, 'TEXT_MATCH');
END;
/
In TEXT_MATCH mode it works.
In GENERAL mode it works.
But choose RECURSIVE and you get the following:
*ERROR at line 1:
Sorry Oracle but that table does exist. Has anyone seen this before? I know what it is doing ... what I'm trying to figure out is why before I report it. Thanks.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Wed Aug 02 2006 - 16:01:45 CDT