Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd829560

Browse files
committed
Make table column type TEXT.
1 parent697f9f0 commitd829560

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(messagecharacter(40));
47+
EXEC SQL AT test0 CREATE TABLE test_thread(messageTEXT);
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)

[8]ページ先頭

©2009-2025 Movatter.jp