Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
9e22f825
Commit
9e22f825
authored
27 years ago
by
Thomas G. Lockhart
Browse files
Options
Downloads
Patches
Plain Diff
Fix typos in SQL statement terminators.
parent
1f4f6b22
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tutorial/funcs.source
+13
-13
13 additions, 13 deletions
src/tutorial/funcs.source
with
13 additions
and
13 deletions
src/tutorial/funcs.source
+
13
−
13
View file @
9e22f825
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
--
--
-- Copyright (c) 1994-5, Regents of the University of California
-- Copyright (c) 1994-5, Regents of the University of California
--
--
-- $Id: funcs.source,v 1.
1.1.1
199
6
/0
7/09 06:22:34 scrappy
Exp $
-- $Id: funcs.source,v 1.
2
199
8
/0
2/11 03:51:38 thomas
Exp $
--
--
---------------------------------------------------------------------------
---------------------------------------------------------------------------
...
@@ -55,10 +55,10 @@ CREATE TABLE EMP (
...
@@ -55,10 +55,10 @@ CREATE TABLE EMP (
dept char16
dept char16
);
);
INSERT INTO EMP VALUES ('Sam', 1200, 16, 'toy')
INSERT INTO EMP VALUES ('Sam', 1200, 16, 'toy')
;
INSERT INTO EMP VALUES ('Claire', 5000, 32, 'shoe')
INSERT INTO EMP VALUES ('Claire', 5000, 32, 'shoe')
;
INSERT INTO EMP VALUES ('Andy', -1000, 2, 'candy')
INSERT INTO EMP VALUES ('Andy', -1000, 2, 'candy')
;
INSERT INTO EMP VALUES ('Bill', 4200, 36, 'shoe')
INSERT INTO EMP VALUES ('Bill', 4200, 36, 'shoe')
;
INSERT INTO EMP VALUES ('Ginger', 4800, 30, 'candy');
INSERT INTO EMP VALUES ('Ginger', 4800, 30, 'candy');
-- the argument of a function can also be a tuple. For instance,
-- the argument of a function can also be a tuple. For instance,
...
@@ -107,7 +107,7 @@ SELECT name(high_pay()) AS overpaid;
...
@@ -107,7 +107,7 @@ SELECT name(high_pay()) AS overpaid;
SELECT * FROM EMP;
SELECT * FROM EMP;
CREATE FUNCTION clean_EMP () RETURNS int4
CREATE FUNCTION clean_EMP () RETURNS int4
AS 'DELETE FROM EMP WHERE EMP.salary <= 0
AS 'DELETE FROM EMP WHERE EMP.salary <= 0
\;
SELECT 1 AS ignore_this'
SELECT 1 AS ignore_this'
LANGUAGE 'sql';
LANGUAGE 'sql';
...
@@ -146,13 +146,13 @@ WHERE name = 'Bill' or name = 'Sam';
...
@@ -146,13 +146,13 @@ WHERE name = 'Bill' or name = 'Sam';
-- remove functions that were created in this file
-- remove functions that were created in this file
DROP FUNCTION c_overpaid(EMP, int4)
DROP FUNCTION c_overpaid(EMP, int4)
;
DROP FUNCTION copytext(text)
DROP FUNCTION copytext(text)
;
DROP FUNCTION concat16(char16,char16)
DROP FUNCTION concat16(char16,char16)
;
DROP FUNCTION add_one(int4)
DROP FUNCTION add_one(int4)
;
DROP FUNCTION clean_EMP()
DROP FUNCTION clean_EMP()
;
DROP FUNCTION new_emp()
DROP FUNCTION new_emp()
;
DROP FUNCTION add_em(int4, int4)
DROP FUNCTION add_em(int4, int4)
;
DROP FUNCTION one();
DROP FUNCTION one();
DROP TABLE EMP;
DROP TABLE EMP;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment