2
0
mirror of https://git.postgresql.org/git/postgresql.git synced 2025-01-12 18:34:36 +08:00

Added missing "commit" in test case.

This commit is contained in:
Michael Meskes 2003-10-12 15:19:46 +00:00
parent f22ddf70be
commit 84b35a7f76

View File

@ -24,6 +24,7 @@ int main()
if (sqlca.sqlcode != 0) $rollback; if (sqlca.sqlcode != 0) $rollback;
$insert into test (i, j) values (:i, 1); $insert into test (i, j) values (:i, 1);
$commit;
$select i from test where j=(select j from test); $select i from test where j=(select j from test);
printf("SELECT: %ld=%s\n", sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc); printf("SELECT: %ld=%s\n", sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc);
@ -41,7 +42,7 @@ int main()
else if (sqlca.sqlcode != 0) printf ("Error: %ld\n", sqlca.sqlcode); else if (sqlca.sqlcode != 0) printf ("Error: %ld\n", sqlca.sqlcode);
if (risnull(CDECIMALTYPE, (char *)&j)) if (risnull(CDECIMALTYPE, (char *)&j))
printf("%d\n", i); printf("%d NULL\n", i);
else else
{ {
int a; int a;