@@ -65,31 +65,31 @@ int main(int argc, char **argv)
65
65
*/
66
66
67
67
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
+ // }
93
93
94
94
rc = OCIHandleAlloc (envhp , (void * * )& authInfop , OCI_HTYPE_AUTHINFO , 0 , NULL );
95
95
checkerr (errhp , rc );
0 commit comments