File: grant_select.sql

package info (click to toggle)
virtuoso-opensource 6.1.4%2Bdfsg1-7
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 245,116 kB
  • sloc: ansic: 639,631; sql: 439,225; xml: 287,085; java: 61,048; sh: 38,723; cpp: 36,889; cs: 25,240; php: 12,562; yacc: 9,036; lex: 7,149; makefile: 6,093; jsp: 4,447; awk: 1,643; perl: 1,017; ruby: 1,003; python: 329
file content (16 lines) | stat: -rw-r--r-- 491 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
create procedure DB.DBA.grant_select()
{
      DB.DBA.USER_CREATE ('SOAP', uuid(), vector ('DISABLED', 1));
      DB.DBA.user_set_qualifier('SOAP', 'WS');
}
;

DB.DBA.grant_select();
grant select on Demo.demo.Customers     to SOAP;
grant select on Demo.demo.Orders        to SOAP;
grant select on Demo.demo.Order_Details to SOAP;
grant select on Demo.demo.Products      to SOAP;
grant select on Demo.demo.Categories    to SOAP;


DB.DBA.exec_no_error ('drop procedure DB.DBA.grant_select');