Home » Developer & Programmer » Precompilers, OCI & OCCI » MetaData.getString(MetaData::ATTR_NAME) will not return column name more then 15 characters..???
icon11.gif  MetaData.getString(MetaData::ATTR_NAME) will not return column name more then 15 characters..??? [message #242045] Thu, 31 May 2007 08:41
Messages: 1
Registered: May 2007
Junior Member

I write a function for get a column name using OCCI. When ever column name length exeed more then 15 characters it's throwing debug assertion fail error. I give my code below. Error is throwing from 5 th Line. I am using Visual studio.NET 2003 IDE but code is Pure c++.

Any one met this issue? Where is the problem it's in my code or..???

1) string colName;

2) vector<MetaData>metaData= resultset->getColumnListMetaData();

3) for(int i=0; i<metaData.size(); i++)
4) {
5) colName = metaData[i].getString(MetaData::ATTR_NAME);
6) }

Previous Topic: loading data from flat file
Next Topic: ORA-01480: trailing null missing from STR bind value
Goto Forum:

Current Time: Wed Oct 26 14:45:31 CDT 2016

Total time taken to generate the page: 0.11254 seconds