File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ int main()
24
24
if (sqlca.sqlcode != 0) $rollback;
25
25
26
26
$insert into test (i, j) values (:i, 1);
27
+ $commit;
27
28
28
29
$select i from test where j=(select j from test);
29
30
printf("SELECT: %ld=%s\n", sqlca.sqlcode, sqlca.sqlerrm.sqlerrmc);
<
62D0
path d="m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"> @@ -41,7 +42,7 @@ int main()
41
42
else if (sqlca.sqlcode != 0) printf ("Error: %ld\n", sqlca.sqlcode);
42
43
43
44
if (risnull(CDECIMALTYPE, (char *)&j))
44
- printf("%d\n", i);
45
+ printf("%d NULL \n", i);
45
46
else
46
47
{
47
48
int a;
You can’t perform that action at this time.
0 commit comments