Sha256: 30c5be95ba91b297ed787314e01a36b9c27cc2f956076b36edb8af59ecdcc0c8

Contents?: true

Size: 1.66 KB

Versions: 16

Compression:

Stored size: 1.66 KB

Contents

create table names (
    name varchar(255),
    age integer
);
---
insert into names (name, age) values ('Joe', 19);
---
insert into names (name, age) values ('Jim', 30);
---
insert into names (name, age) values ('Bob', 21);
---
create table precision_test (text_field varchar(20) primary key not null, integer_field integer, decimal_field decimal(2,1), numeric_field numeric(30,6));
---
CREATE TABLE blob_test (name VARCHAR(30), data OID);
---
create view view_names as select * from names;
---
create or replace function test_insert (varchar(255), integer) 
    returns integer 
    language sql 
    as 'insert into names (name, age) values ($1, $2); select age from names where name = $1';
---
create table boolean_test (num integer, mybool boolean);
---
create table time_test (mytime time);
---
create table timestamp_test (mytimestamp timestamp);
---
create table bit_test (mybit bit);
---
create table field_types_test (foo integer not null primary key default 1);
---
create type enum_test as ENUM ('one', 'two', 'three');
---
create table enum_type_test (foo enum_test);
---
create table db_specific_types_test (foo integer);
---
create table array_test (foo integer[], bar integer[3], baz integer[3][3], quux varchar[2]);
---
create table bytea_test (foo bytea);
---
create schema schema1;
---
create schema schema2;
---
create table schema1.tbl (foo integer);
---
create table schema2.tbl (bar integer);
---
create or replace function 
    select_subproperty(value names.age%TYPE, sub names.age%TYPE, out retval names.age%TYPE) 
    as $$ 
        select 
            case 
            when $2 is not null 
                then $1 
            else null 
        end 
    $$ language sql;

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
ydbd-pg-0.6.0 test/dbd/postgresql/up.sql
ydbi-0.6.0 test/dbd/postgresql/up.sql
ydbd-pg-0.5.9 test/dbd/postgresql/up.sql
ydbd-pg-0.5.8 test/dbd/postgresql/up.sql
ydbd-pg-0.5.7 test/dbd/postgresql/up.sql
ydbi-0.5.7 test/dbd/postgresql/up.sql
ydbd-pg-0.5.6 test/dbd/postgresql/up.sql
ydbd-pg-0.5.5 test/dbd/postgresql/up.sql
ydbd-pg-0.5.4 test/dbd/postgresql/up.sql
ydbd-pg-0.5.3 test/dbd/postgresql/up.sql
ydbd-pg-0.5.2 test/dbd/postgresql/up.sql
ydbd-pg-0.5.1 test/dbd/postgresql/up.sql
ydbi-0.5.0 test/dbd/postgresql/up.sql
dbd-pg-0.3.9 test/dbd/postgresql/up.sql
dbd-pg-0.3.8 test/dbd/postgresql/up.sql
dbd-pg-0.3.7 test/dbd/postgresql/up.sql