~ubuntu-branches/ubuntu/saucy/padre/saucy-proposed

« back to all changes in this revision

Viewing changes to eg/theme/style_sql.sql

  • Committer: Package Import Robot
  • Author(s): Dominique Dumont, gregor herrmann, Dominique Dumont
  • Date: 2012-01-04 12:04:20 UTC
  • mfrom: (1.3.3)
  • Revision ID: package-import@ubuntu.com-20120104120420-i5oybqwf91m1d3il
Tags: 0.92.ds1-1
[ gregor herrmann ]
* Remove debian/source/local-options; abort-on-upstream-changes
  and unapply-patches are default in dpkg-source since 1.16.1.
* Swap order of alternative (build) dependencies after the perl
  5.14 transition.

[ Dominique Dumont ]
* Imported Upstream version 0.92.ds1
* removed fix-spelling patch (applied upstream)
* lintian-override: use wildcard to avoid listing a gazillion files
* updated size of some 'not-real-man-page' entries
* rules: remove dekstop cruft (replaced by a file provided in debian
  directory)
* control: removed Breaks statement. Add /me to uploaders. Updated
  dependencies
* rules: make sure that non-DFSG file (i.e. the cute butterfly, sigh)
  is not distributed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** 
 
2
*========================================================================<br/>
 
3
* A package for handling partner related activities like
 
4
* (adding a new partner, updating partner data, removing a
 
5
* partner)
 
6
* PLDOC Style
 
7
*/
 
8
CREATE OR REPLACE PACKAGE flyingfish
 
9
IS
 
10
 
 
11
 
 
12
    /** Checking the partner record whether it exists or not.
 
13
    *  @param id The ID of the partner we want to check
 
14
    *  @return 1 if the partner exists, -1 if it doesn't.
 
15
    * @foo  
 
16
    */
 
17
    FUNCTION check_partner(
 
18
        id IN VARCHAR2
 
19
    ) RETURN NUMBER;
 
20
 
 
21
 
 
22
END;
 
23
/
 
24
 
 
25
 
 
26
 
 
27
/* comment - multiline
 
28
   more comment
 
29
   and again.
 
30
*/
 
31
 
 
32
-- sqlplus-isms?
 
33
&myvar1=first value
 
34
&myvar2=second value
 
35
WHENEVER OSERROR SHUTDOWN;
 
36
 
 
37
-- double dashed comment
 
38
 
 
39
-- DML
 
40
 
 
41
SELECT * FROM mytable WHERE this = :that;
 
42
 
 
43
SELECT abs(this),HexToRaw('dead') FROM mytable WHERE this = ?;
 
44
 
 
45
INSERT INTO mytable(that,that) VALUES ( NULL, 10 );
 
46
 
 
47
UPDATE mytable SET this = :that;
 
48
/** PLDOC comments 
 
49
   @thing
 
50
*/
 
51
REPLACE INTO mytable VALUES (10,"eleven",'singlequoted');
 
52
 
 
53
MERGE INTO mytable USING newdata
 
54
    ON mytable.foo = newdata.foo
 
55
    WHEN MATCHED THEN
 
56
        UPDATE SET bar = newdata.bar
 
57
    WHEN NOT MATCHED THEN
 
58
        INSERT newdata
 
59
    ;
 
60
 
 
61
-- DDL
 
62
 
 
63
CREATE OR REPLACE TRIGGER xyz_trg BEFORE INSERT ON mytable;
 
64
 
 
65
CREATE TABLE mytable (
 
66
    this        INTEGER,
 
67
    that        VARCHAR2(255),
 
68
    more        VARCHAR(2),
 
69
    other       BLOB,
 
70
);
 
71
 
 
72
BEGIN
 
73
 
 
74
COMMIT
 
75
 
 
76
END;