From: Bruce Momjian Date: Thu, 7 Aug 2003 16:37:31 +0000 (+0000) Subject: Make table column type TEXT. X-Git-Tag: REL7_4_BETA2~152 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8295603c8f02f66fb1388480e11e9362f1688c2;p=postgresql Make table column type TEXT. --- diff --git a/src/interfaces/ecpg/test/test_thread.pgc b/src/interfaces/ecpg/test/test_thread.pgc index 900438b862..4908e40646 100644 --- a/src/interfaces/ecpg/test/test_thread.pgc +++ b/src/interfaces/ecpg/test/test_thread.pgc @@ -44,7 +44,7 @@ EXEC SQL END DECLARE SECTION; /* DROP might fail */ EXEC SQL AT test0 DROP TABLE test_thread; EXEC SQL AT test0 COMMIT WORK; - EXEC SQL AT test0 CREATE TABLE test_thread(message character(40)); + EXEC SQL AT test0 CREATE TABLE test_thread(message TEXT); EXEC SQL AT test0 COMMIT WORK; EXEC SQL DISCONNECT test0; @@ -52,15 +52,16 @@ EXEC SQL END DECLARE SECTION; pthread_create(&thread2, NULL, (void *) ins2, NULL); pthread_join(thread1, NULL); pthread_join(thread2, NULL); + EXEC SQL CONNECT TO:dbname AS test3; EXEC SQL AT test3 SELECT COUNT(*) INTO :rows FROM test_thread; EXEC SQL AT test3 COMMIT WORK; EXEC SQL DISCONNECT test3; if (rows == iterations) - printf("Success.\n"); + printf("\nSuccess.\n"); else - printf("Failure.\n"); + printf("\nFailure.\n"); return 0; }