Skip to content

Commit 23317cd

Browse files
committed
testing
1 parent 9160346 commit 23317cd

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

C/drcp.c

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -65,31 +65,31 @@ int main(int argc, char **argv)
6565
*/
6666

6767
rc = OCIEnvNlsCreate(&envhp, OCI_DEFAULT, 0, NULL, NULL, NULL, 0, NULL, 0, 0);
68-
if (rc != OCI_SUCCESS)
69-
{
70-
oracode = 0;
71-
*errbuf = '\0';
72-
if (envhp)
73-
OCIErrorGet(envhp, 1, NULL, &oracode, errbuf, sizeof(errbuf), OCI_HTYPE_ENV);
74-
if (*errbuf)
75-
printf("OCIEnvNlsCreate failed: %d : %s\n", oracode, errbuf);
76-
else
77-
printf("OCIEnvNlsCreate returned status: %d\n", rc);
78-
exit(1);
79-
}
80-
81-
rc = OCIHandleAlloc(envhp, (void **)&errhp, OCI_HTYPE_ERROR, 0, NULL);
82-
if (rc != OCI_SUCCESS)
83-
{
84-
oracode = 0;
85-
*errbuf = '\0';
86-
OCIErrorGet(envhp, 1, NULL, &oracode, errbuf, sizeof(errbuf), OCI_HTYPE_ENV);
87-
if (*errbuf)
88-
printf("OCIHandleAlloc failed: %d : %s\n", oracode, errbuf);
89-
else
90-
printf("OCIHandleAlloc returned status: %d\n", rc);
91-
exit(1);
92-
}
68+
// if (rc != OCI_SUCCESS)
69+
// {
70+
// oracode = 0;
71+
// *errbuf = '\0';
72+
// if (envhp)
73+
// OCIErrorGet(envhp, 1, NULL, &oracode, errbuf, sizeof(errbuf), OCI_HTYPE_ENV);
74+
// if (*errbuf)
75+
// printf("OCIEnvNlsCreate failed: %d : %s\n", oracode, errbuf);
76+
// else
77+
// printf("OCIEnvNlsCreate returned status: %d\n", rc);
78+
// exit(1);
79+
// }
80+
81+
// rc = OCIHandleAlloc(envhp, (void **)&errhp, OCI_HTYPE_ERROR, 0, NULL);
82+
// if (rc != OCI_SUCCESS)
83+
// {
84+
// oracode = 0;
85+
// *errbuf = '\0';
86+
// OCIErrorGet(envhp, 1, NULL, &oracode, errbuf, sizeof(errbuf), OCI_HTYPE_ENV);
87+
// if (*errbuf)
88+
// printf("OCIHandleAlloc failed: %d : %s\n", oracode, errbuf);
89+
// else
90+
// printf("OCIHandleAlloc returned status: %d\n", rc);
91+
// exit(1);
92+
// }
9393

9494
rc = OCIHandleAlloc(envhp, (void **)&authInfop, OCI_HTYPE_AUTHINFO, 0, NULL);
9595
checkerr(errhp, rc);

0 commit comments

Comments
 (0)