From 79a3dbd44f55340d2b6bd5f7e508341adaea1ad3 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 8 Sep 2012 12:41:19 +0000 Subject: Add tests target and test script. --- Frameworks/PostgresKit/Resources/TestData.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Frameworks/PostgresKit/Resources/TestData.sql') diff --git a/Frameworks/PostgresKit/Resources/TestData.sql b/Frameworks/PostgresKit/Resources/TestData.sql index 1aea4908..036ce4f2 100644 --- a/Frameworks/PostgresKit/Resources/TestData.sql +++ b/Frameworks/PostgresKit/Resources/TestData.sql @@ -41,7 +41,7 @@ INSERT INTO data_types ( timetz_field, timstamp_field, timestamptz_field) -VALUES ( +SELECT 12345, 2, TRUE, @@ -52,7 +52,8 @@ VALUES ( '02:02:02', '02:02:02 GMT', '08-04-1987 02:02:02', - '08-04-1987 02:02:02 GMT'); + '08-04-1987 02:02:02 GMT' +WHERE NOT EXISTS (SELECT 1 FROM data_types WHERE int_field = 12345); COMMIT; -- cgit v1.2.3