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)


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


Current Time: Thu Mar 28 09:05:43 CDT 2024