Home » Developer & Programmer » Precompilers, OCI & OCCI » purify report the oraconnect has problem,how to resolve it?
purify report the oraconnect has problem,how to resolve it? [message #244251] Tue, 12 June 2007 02:53
kitten
Messages: 1
Registered: June 2007
Junior Member
i try to use purify check my codes, i didn't know how to resolve it.

the main function is:
int main(int argc, char** argv)
{
int i;

i=1;
if ( argc != 2 )
{
fprintf(stderr,"The argument are wrong! PLEASE HECK...\n");
fprintf(stderr,"EXAMPLE:[%s] outputfile\n",argv[0]);
exit(ERR_USAGE);
}
oraconnect();
read_rip();
oradisconnect(i);
exit(0);
}

int oraconnect()
{
strcpy(Uid.arr,"scott");
Uid.len = strlen(Uid.arr);
strcpy(Pwd.arr,"tiger");
Pwd.len = strlen(Pwd.arr);
EXEC SQL CONNECT :Uid IDENTIFIED BY :Pwd;
if (trace_flag) start_sql_trace();
return RETURN_OK;
}

purify report the followed bug( see the attachments)


./fa/2584/0/
  • Attachment: 未命名.jpg
    (Size: 95.63KB, Downloaded 468 times)
Previous Topic: how to update BLOB using OCCI (C++)?
Next Topic: Global temporary table
Goto Forum:
  


Current Time: Sun Dec 11 04:23:19 CST 2016

Total time taken to generate the page: 0.07352 seconds