Skip to content

Commit d829560

Browse files
committed
Make table column type TEXT.
1 parent 697f9f0 commit d829560

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/interfaces/ecpg/test/test_thread.pgc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,24 @@ EXEC SQL END DECLARE SECTION;
4444
/* DROP might fail */
4545
EXEC SQL AT test0 DROP TABLE test_thread;
4646
EXEC SQL AT test0 COMMIT WORK;
47-
EXEC SQL AT test0 CREATE TABLE test_thread(message character(40));
47+
EXEC SQL AT test0 CREATE TABLE test_thread(message TEXT);
4848
EXEC SQL AT test0 COMMIT WORK;
4949
EXEC SQL DISCONNECT test0;
5050

5151
pthread_create(&thread1, NULL, (void *) ins1, NULL);
5252
pthread_create(&thread2, NULL, (void *) ins2, NULL);
5353
pthread_join(thread1, NULL);
5454
pthread_join(thread2, NULL);
55+
5556
EXEC SQL CONNECT TO:dbname AS test3;
5657
EXEC SQL AT test3 SELECT COUNT(*) INTO :rows FROM test_thread;
5758
EXEC SQL AT test3 COMMIT WORK;
5859
EXEC SQL DISCONNECT test3;
5960

6061
if (rows == iterations)
61-
printf("Success.\n");
62+
printf("\nSuccess.\n");
6263
else
63-
printf("Failure.\n");
64+
printf("\nFailure.\n");
6465
return 0;
6566
}
6667

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy