From 5bf82f88a7eb020d77b6539042780b8fcd6f18ab Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Sat, 28 Dec 2013 12:35:55 +0100 Subject: [PATCH] Fixed create.sql and reset.sql to make them work with PostgreSQL 8.3 --- jOOQ-test/src/org/jooq/test/postgres/create.sql | 5 +++-- jOOQ-test/src/org/jooq/test/postgres/reset.sql | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/jOOQ-test/src/org/jooq/test/postgres/create.sql b/jOOQ-test/src/org/jooq/test/postgres/create.sql index 35777166e8..09137b6511 100644 --- a/jOOQ-test/src/org/jooq/test/postgres/create.sql +++ b/jOOQ-test/src/org/jooq/test/postgres/create.sql @@ -521,12 +521,13 @@ CREATE OR REPLACE FUNCTION f_search_book(p_title character varying, p_limit bigi RETURNS SETOF t_book AS $BODY$ SELECT * FROM t_book -WHERE (LOWER(title) LIKE LOWER('%' || p_title || '%')) -LIMIT p_limit OFFSET p_offset; +WHERE (LOWER(title) LIKE LOWER('%' || $1 || '%')) +LIMIT $2 OFFSET $3; $BODY$ LANGUAGE sql VOLATILE COST 100 ROWS 1000; +/ CREATE FUNCTION p_unused (in1 VARCHAR, out1 OUT INT, out2 IN OUT INT) AS $$ diff --git a/jOOQ-test/src/org/jooq/test/postgres/reset.sql b/jOOQ-test/src/org/jooq/test/postgres/reset.sql index e9fa132c8d..ea89fc1469 100644 --- a/jOOQ-test/src/org/jooq/test/postgres/reset.sql +++ b/jOOQ-test/src/org/jooq/test/postgres/reset.sql @@ -27,7 +27,7 @@ INSERT INTO t_language (id, cd, description, description_english) VALUES (4, 'pt / -INSERT INTO t_author VALUES (nextval('s_author_id'), 'George', 'Orwell', TO_DATE('1903-06-25', 'YYYY-MM-DD'), 1903, ROW(ROW('Parliament Hill', '77', '{1, 2, 3}', E'\\x7070'), 'NW31A9', 'Hampstead', 'England', '1980-01-01', null, E'\\x7171')) +INSERT INTO t_author VALUES (nextval('s_author_id'), 'George', 'Orwell', TO_DATE('1903-06-25', 'YYYY-MM-DD'), 1903, ROW(ROW('Parliament Hill', '77', '{1, 2, 3}', E'\\160\\160'::bytea), 'NW31A9', 'Hampstead', 'England', '1980-01-01', null, E'\\161\\161'::bytea)) / INSERT INTO t_author VALUES (nextval('s_author_id'), 'Paulo', 'Coelho', TO_DATE('1947-08-24', 'YYYY-MM-DD'), 1947, ROW(ROW('Caixa Postal', '43.003', null, null), null, 'Rio de Janeiro', 'Brazil', '1940-01-01', 2, null)) /