OCCI getString problem [message #94267] |
Wed, 23 June 2004 22:51 |
Yanis Manaras
Messages: 1 Registered: June 2004
|
Junior Member |
|
|
Hi,
I would be grateful if you could help me with the following problem. I tried to run the metadata example I found in the "OCCI programmers guide" and it seems that it fails when the statement
"(emptab_metaData.getString(MetaData::ATTR_OBJ_SCHEMA))" is run.
Am I missing something?
Cheers,
Yanis
Environment *env = Environment::createEnvironment(Environment::DEFAULT);
Connection *conn = env->createConnection(userName, passWord, url1);
MetaData emptab_metaData = conn->getMetaData("EMPLOYEES", MetaData::PTYPE_TABLE);
/*
Now that you have the metadata information on the EMPLOYEES table,
call the getxxx methods using the appropriate attributes
*/
/* Call getString */
cout<<"Schema:"<<(emptab_metaData.getString(MetaData::ATTR_OBJ_SCHEMA))<<endl;
|
|
|