ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/examples/ibstoredproc/fbout-header.sql
Revision: 158
Committed: Thu Mar 1 11:23:33 2018 UTC (6 years, 1 month ago) by tony
Content type: application/sql
File size: 1393 byte(s)
Log Message:
Repository resync

File Contents

# Content
1 /*
2 * The contents of this file are subject to the Initial
3 * Developer's Public License Version 1.0 (the "License");
4 * you may not use this file except in compliance with the
5 * License. You may obtain a copy of the License at
6 * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl.
7 *
8 * Software distributed under the License is distributed AS IS,
9 * WITHOUT WARRANTY OF ANY KIND, either express or implied.
10 * See the License for the specific language governing rights
11 * and limitations under the License.
12 *
13 * The Original Code was created by Adriano dos Santos Fernandes
14 * for the Firebird Open Source RDBMS project.
15 *
16 * Copyright (c) 2009 Adriano dos Santos Fernandes <adrianosf@gmail.com>
17 * and all contributors signed below.
18 *
19 * All Rights Reserved.
20 * Contributor(s): ______________________________________.
21 */
22
23 create sequence fb$out_seq;
24
25 create domain fb$out_type as blob sub_type text character set utf8 not null;
26
27 create global temporary table fb$out_table (
28 line_num int,
29 content fb$out_type
30 ) on commit preserve rows;
31
32
33 set term !;
34
35
36 create or alter package fb$out
37 as
38 begin
39 procedure enable;
40 procedure disable;
41
42 procedure put_line (line fb$out_type);
43 procedure clear;
44
45 procedure get_lines returns (lines fb$out_type);
46 end!
47
48
49 set term ;!
50
51
52 grant all on table fb$out_table to package fb$out;
53
54 grant execute on package fb$out to public;