~ubuntu-branches/ubuntu/wily/psqlodbc/wily-proposed

« back to all changes in this revision

Viewing changes to test/sql/sampletables.sql

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2014-05-29 23:17:25 UTC
  • mfrom: (16.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20140529231725-nhpolx85545e4rk8
Tags: 1:09.03.0300-1
* New upstream release.
* Patch bogus expected output of test catalogfunctions.
* Set team as maintainer.
* Bump to dh 9.
* Use /usr/share/cdbs/1/rules/autoreconf.mk. Closes: #744650.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
-- This file creates some tables to be used in the tests
 
2
SET client_min_messages TO WARNING;
2
3
 
3
 
CREATE TABLE testtab1 (id integer, t varchar(20));
 
4
CREATE TABLE testtab1 (id integer PRIMARY KEY, t varchar(20));
4
5
INSERT INTO testtab1 VALUES (1, 'foo');
5
6
INSERT INTO testtab1 VALUES (2, 'bar');
6
7
INSERT INTO testtab1 VALUES (3, 'foobar');
7
8
 
 
9
CREATE TABLE testtab_fk (id integer REFERENCES testtab1, t varchar(20));
 
10
INSERT INTO testtab_fk VALUES (1, 'hoge');
 
11
INSERT INTO testtab_fk VALUES (2, 'pogno');
 
12
INSERT INTO testtab_fk VALUES (3, 'poco');
 
13
 
8
14
CREATE TABLE byteatab (id integer, t bytea);
9
15
INSERT INTO byteatab VALUES (1, E'\\001\\002\\003\\004\\005\\006\\007\\010'::bytea);
10
16
INSERT INTO byteatab VALUES (2, 'bar');
23
29
INSERT INTO booltab VALUES (3, 'true', true);
24
30
INSERT INTO booltab VALUES (4, 'false', false);
25
31
INSERT INTO booltab VALUES (5, 'not', false);
 
32
 
 
33
-- Procedure for catalog function checks
 
34
CREATE FUNCTION simple_add(in int, in int, out int)
 
35
AS $$ SELECT $1 + $2;
 
36
$$ LANGUAGE SQL;