We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent697f9f0 commitd829560Copy full SHA for d829560
src/interfaces/ecpg/test/test_thread.pgc
@@ -44,23 +44,24 @@ EXEC SQL END DECLARE SECTION;
44
/* DROP might fail */
45
EXEC SQL AT test0 DROP TABLE test_thread;
46
EXEC SQL AT test0 COMMIT WORK;
47
-EXEC SQL AT test0 CREATE TABLE test_thread(messagecharacter(40));
+EXEC SQL AT test0 CREATE TABLE test_thread(messageTEXT);
48
49
EXEC SQL DISCONNECT test0;
50
51
pthread_create(&thread1, NULL, (void *) ins1, NULL);
52
pthread_create(&thread2, NULL, (void *) ins2, NULL);
53
pthread_join(thread1, NULL);
54
pthread_join(thread2, NULL);
55
+
56
EXEC SQL CONNECT TO:dbname AS test3;
57
EXEC SQL AT test3 SELECT COUNT(*) INTO :rows FROM test_thread;
58
EXEC SQL AT test3 COMMIT WORK;
59
EXEC SQL DISCONNECT test3;
60
61
if (rows == iterations)
-printf("Success.\n");
62
+printf("\nSuccess.\n");
63
else
-printf("Failure.\n");
64
+printf("\nFailure.\n");
65
return 0;
66
}
67