Issue Details (XML | Word | Printable)

Key: DERBY-4164
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Dag H. Wanvik
Reporter: Dag H. Wanvik
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

Make REVOKE statement description mention what happens for open result sets/cursors

Created: 16/Apr/09 05:22 PM   Updated: 16/Jul/09 09:24 PM
Component/s: Documentation
Affects Version/s: 10.2.2.1, 10.2.3.0, 10.3.3.1, 10.3.4.0, 10.4.2.1, 10.4.3.0, 10.5.1.1
Fix Version/s: 10.5.2.0, 10.6.0.0

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works derby-4164-2.diff 2009-04-17 01:29 PM Kim Haase 1 kB
File Licensed for inclusion in ASF works derby-4164-3.diff 2009-04-17 04:58 PM Dag H. Wanvik 1 kB
File Licensed for inclusion in ASF works derby-4164-4.diff 2009-04-17 11:14 PM Dag H. Wanvik 1 kB
File Licensed for inclusion in ASF works derby-4164.diff 2009-04-16 06:02 PM Dag H. Wanvik 1 kB
HTML File Licensed for inclusion in ASF works rrefsqljrevoke-3.html 2009-04-17 04:58 PM Dag H. Wanvik 20 kB
HTML File Licensed for inclusion in ASF works rrefsqljrevoke-4.html 2009-04-17 11:14 PM Dag H. Wanvik 20 kB
HTML File Licensed for inclusion in ASF works rrefsqljrevoke.html 2009-04-17 01:29 PM Kim Haase 20 kB

Resolution Date: 17/Apr/09 11:27 PM
Labels:


 Description  « Hide
When a REVOKE statement is executed, already open result sets are not impacted. This should be mentioned
in the user documentation, at least here: ref/rrefsqljrevoke.html.

Permissions are checked at statement execute time; if this succeeds, a cursor/result set will be able to access all rows
in the result set even if privileges/roles are revoked after the execute but before the result set/cursor is closed.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Dag H. Wanvik added a comment - 16/Apr/09 06:02 PM
Uploading a patch adding a subsection explaining this to the reference manual's REVOKE
section.

Dag H. Wanvik made changes - 16/Apr/09 06:02 PM
Field Original Value New Value
Attachment derby-4164.diff [ 12405677 ]
Dag H. Wanvik made changes - 16/Apr/09 06:02 PM
Derby Info [Patch Available]
Dag H. Wanvik made changes - 16/Apr/09 06:03 PM
Fix Version/s 10.6.0.0 [ 12313727 ]
Kim Haase added a comment - 17/Apr/09 01:29 PM
Dag, this is a great explanation, but there is a bit of a run-on sentence in it. I'm attaching a second patch (derby-4164-2.diff) that makes a few edits -- I hope it has not changed the meaning of anything. I've also attached the output HTML page, rrefsqljrevoke.html.

Kim Haase made changes - 17/Apr/09 01:29 PM
Attachment derby-4164-2.diff [ 12405767 ]
Attachment rrefsqljrevoke.html [ 12405768 ]
Dag H. Wanvik added a comment - 17/Apr/09 04:58 PM
Thanks for looking at this Kim!
I agree, the wording I used for "execute" was awkward; I was trying to refer to the JDBC "execute" method in order to use a more specific term than "execution", which could possibly be construed as also referring the fetching of rows from the result set/cursor, but thinking about it again, "execution" is better. Your other edits also improve readability.

I upload a third version (with HTML for convenience), in which I make the sentence about the
result set start a new paragraph, to avoid giving the impression that this description only
applies when prepared statements are used; it also holds when direct execution is used, of course.
Do you think I would be better to use a separate section to further clarify this?

Dag H. Wanvik made changes - 17/Apr/09 04:58 PM
Attachment derby-4164-3.diff [ 12405784 ]
Attachment rrefsqljrevoke-3.html [ 12405785 ]
Kim Haase added a comment - 17/Apr/09 06:19 PM
I don't think you need a separate section, since the title covers open result sets in general -- but it might be helpful to change the sentence to say something like

  Once a result set has been returned to the application (by a prepared statement or by direct execution), ...

Though I'm not exactly sure what "direct execution" covers -- execution of an ordinary Statement rather than a prepared one?

Dag H. Wanvik added a comment - 17/Apr/09 11:02 PM
Yes, that's the common usage of "direct execution", cf. e.g. here:
http://msdn.microsoft.com/en-us/library/aa197638(SQL.80).aspx

Repository Revision Date User Message
ASF #766177 Fri Apr 17 23:13:24 UTC 2009 dag DERBY-4164 Make REVOKE statement description mention what happens for open result sets/cursors

Patch DERBY-4164-4 which adds such a description.
Files Changed
MODIFY /db/derby/docs/trunk/src/ref/rrefsqljrevoke.dita

Dag H. Wanvik added a comment - 17/Apr/09 11:14 PM
Uploading patch #4 with your suggested wording, Kim, thanks.
Committed as svn 766177.

Dag H. Wanvik made changes - 17/Apr/09 11:14 PM
Attachment derby-4164-4.diff [ 12405824 ]
Attachment rrefsqljrevoke-4.html [ 12405825 ]
Dag H. Wanvik made changes - 17/Apr/09 11:16 PM
Assignee Dag H. Wanvik [ dagw ]
Repository Revision Date User Message
ASF #766179 Fri Apr 17 23:26:21 UTC 2009 dag DERBY-4164 Make REVOKE statement description mention what happens for open result sets/cursors

Backported fix from trunk tp 10.5 branch as:

svn merge -c 766177 https://svn.apache.org/repos/asf/db/derby/docs/trunk.
Files Changed
MODIFY /db/derby/docs/branches/10.5/src/ref/rrefsqljrevoke.dita

Dag H. Wanvik added a comment - 17/Apr/09 11:26 PM
Backported to 10.5 docs branch as:
svn merge -c 766177 https://svn.apache.org/repos/asf/db/derby/docs/trunk
Committed as svn 766179, closing.

Dag H. Wanvik made changes - 17/Apr/09 11:27 PM
Status Open [ 1 ] Closed [ 6 ]
Derby Info [Patch Available]
Fix Version/s 10.5.1.2 [ 12313870 ]
Resolution Fixed [ 1 ]
Dag H. Wanvik made changes - 17/Apr/09 11:29 PM
Affects Version/s 10.2.2.1 [ 12312251 ]
Affects Version/s 10.2.3.0 [ 12312215 ]
Affects Version/s 10.3.3.1 [ 12313143 ]
Affects Version/s 10.3.4.0 [ 12313653 ]
Affects Version/s 10.4.2.1 [ 12313401 ]
Affects Version/s 10.4.3.0 [ 12313654 ]
Affects Version/s 10.5.0.0 [ 12313010 ]
Affects Version/s 10.5.1.0 [ 12313770 ]
Affects Version/s 10.5.1.1 [ 12313771 ]
Myrna van Lunteren made changes - 04/May/09 06:21 PM
Affects Version/s 10.5.0.0 [ 12313010 ]
Myrna van Lunteren made changes - 04/May/09 06:24 PM
Affects Version/s 10.5.1.0 [ 12313770 ]
Kathey Marsden made changes - 16/Jul/09 09:24 PM
Fix Version/s 10.5.2.0 [ 12314116 ]
Fix Version/s 10.5.1.2 [ 12313870 ]