Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Yet another funny PL/SQL parser "feature"

Re: Yet another funny PL/SQL parser "feature"

From: Daniel Morgan <dmorgan_at_exesolutions.com>
Date: Fri, 02 Aug 2002 20:34:41 GMT
Message-ID: <3D4AECDD.92554A2A@exesolutions.com>


FC wrote:

> Hello folks,
> here is another interesting parser feature of 8.1.7.0.0.
>
> I bet you don't have any table called <ohmygoodness> in your db, but the
> following procedure will still compile without a hitch.
> Luckily enough, it will raise an exception at run time, unless you do have a
> table with such name.
>
> ----
> Procedure have_fun
> is
> begin
> lock table ohmygoodness in share mode;
> End;
> ----
>
> Bye,
> Flavio

Seems it will do it with anything provided. The following is perfectly legal too in 8.1.7.

CREATE OR REPLACE PROCEDURE xxx IS

BEGIN
  LOCK TABLE thisisabloodyjoke IN SHARE MODE; END;
/

Daniel Morgan Received on Fri Aug 02 2002 - 15:34:41 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US