aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-08-07 16:37:31 +0000
committerBruce Momjian <bruce@momjian.us>2003-08-07 16:37:31 +0000
commitd8295603c8f02f66fb1388480e11e9362f1688c2 (patch)
treeaf83618752831ca93950c2a92fbfc8ff57692668 /src
parent697f9f09ed5577547f04741ebfb33009aded8025 (diff)
downloadpostgresql-d8295603c8f02f66fb1388480e11e9362f1688c2.tar.gz
postgresql-d8295603c8f02f66fb1388480e11e9362f1688c2.zip
Make table column type TEXT.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/test/test_thread.pgc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/test/test_thread.pgc b/src/interfaces/ecpg/test/test_thread.pgc
index 900438b862c..4908e406468 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;
}