db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Satheesh Bandaram <sathe...@Sourcery.Org>
Subject Re: is it possible to call language sql/execute/AlterTableConstantAction from a system procedure?
Date Sun, 26 Feb 2006 02:37:27 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
<pre wrap="">Mike Matrigali wrote:

<blockquote type="cite">
  <pre wrap="">are 3 options:
1) copy the code to the system procedure
2) use the same method as offline compress, ie. add some internal
   syntax so that the whole setup is just done by the parser.
3) somehow call the alter statement node directly from "around"
   the parser.  I have no idea if this is possible, or how hard.
<pre wrap=""><!---->Mike, also the way inplace compress is coded, there would
be an authorization issue if continued this way. In sqlStandard authorization mode, only schema
owner can issue DDLs on tables and this is enforced in language layer. Bypassing of language
compilation phase currently allows INPLACE compress to succeed where as offline compress fails:
ij&gt; connect 'tdb;user=sat';<br>
ERROR 38000: The exception 'SQL Exception: User 'SAT' can not perform
the operation in schema 'APP'.' was thrown while evaluating an
ERROR 2850D: <b>User 'SAT' can not perform the operation in schema
'T1', 1,1,1);<br>
0 rows inserted/updated/deleted<br>
Once routine privileges are implemented fully, I have to make a list of
all system procedures and evaluate each one.<br>
<pre wrap="">

View raw message