Rem Copyright (c) 2009 ArKZoYd. All rights reserved.
Rem 
Rem $Header: arkzoyd_sqlcode.sql v0.13 gguillou Exp $
Rem
Rem  Name
Rem    arkzoyd_sqlcode.sql
Rem
Rem  Description
Rem    Package that proposes functions and procedures to parse and 
Rem    manage SQL Code.
Rem
Rem  Notes
Rem    Very limited set of features for now:
Rem         - remove_comments take a SQL command and remove the 
Rem           comments from it.
Rem         - get_renamed_tables take a "rename" command and
Rem           returns the old and new name of the object to
Rem           rename.
Rem
Rem  Known issues:
Rem      remove_comments does not Manage Q-Quote String Pattern
Rem
Rem  History (MM/DD/YY)  
Rem     gguillou   03/29/09  - Creation
Rem
Rem

create or replace package arkzoyd_sqlcode is
   type ddl_rename_output_t
        is record (old_table_name varchar2(40),
                   new_table_name varchar2(40));
                   
   function remove_comments(sqltext in clob) return clob;
   function get_renamed_tables(sqltext in clob) return ddl_rename_output_t;
end;

/

create or replace package body arkzoyd_sqlcode wrapped 
a000000
369
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
b
2b9e b16
r18PXzQjqr0B6RkPFzpwz6fL0CEwg82jeV6G3y+5Fz+VGRAtEEbINuiCLuz/V/Th0UrNA40d
g/YAPlPdjvH2fBAT5M7yP/dsk592U5hhgoGmUopMzQWMVY1GF0pyR7Y277/AvW2Blqo7+TTL
LKrtnaNMgHBEEhKmqRDHX+Zdde/9Ludj9u/rKSiw6KQONeYtnOSBz79fG8csNam4dbgpPuqS
bBcqfd1GP0bcVgcZWmaShEH2Zz7Igj45pFolCaGwhW7KLBlY+c530hJiuMG0EwsEBblaqPPY
JpEEIuk62sAuYAPKWQcRt5pQYXYa+EGt+jYNStrUyYyBDdcbY2U5iII9PexlDa2N/gkkLsH/
BLriHSLsvrtpV58Xgl2PZygZgwRMcEtuWfYs7r5PP/pWDoznLM4lhKLLqL1WwRTSWV/3uzao
QBVv4H5n1KuY+Tb1sYTLY3S47lZzhREIXWiNKGjIaIBJf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