Ingres Community Forums Login Register Ingres.com  

Ingres Community Forum



Reply
 
LinkBack Thread Tools Display Modes
Old 2009-12-14   #1 (permalink)
Hej
Junior Member
 
Join Date: Dec 2009
Posts: 1
Default Problem with openAPI

Hi all,

I have problems when I make some changes in "apisblob.c".I want to add a new data type geometry to support spatial data.So,I add IIAPI_GEOM_TYPE in iiapi.h.

Also,I have add data type in gcoint.h,gca.h.gcudata.c,gcocomp.c,gcood.c.
In gcoint.h,I have added #define GCO_DT_GEOM 86 and #define GCO_DT_GEOM_N 87.
In gca.h,I have added #define GCA_TYPE_GEOM 16404.
In gcudata.c,I have added GCO_DT_GEOM,"GCO_DT_GEOM".
In gcocomp.c I have added case GCA_TYPE_GEOM:type=GCO_DT_GEOM;break;
In gcood.c I have added GLOBALDEF GCA_OBJECT_DESC *gco_ddt_ods[]={(GCA_OBJECT DESC *)&od_geom}.
OD_INS(2) od_geom={"st_geometry",GCA_IGNPRCLEN,2,
{
{{0,0,0},&od_blob_header.desc,GCA_NOTARRAY},
{0,0,0},&od_LCHR_list.desc,GCA_VARLSTAR}}
};
OD_INS(2) od_geom_n={"nullable st_geometry",GCA_IGNPRCLEN,3,
{
{{0,0,0},&od_blob_header.desc,GCA_NOTARRAY},
{0,0,0},&od_LCHR_list.desc,GCA_VARLSTAR}
{GEO_ATOM_INT,0,1},0,GCA_NOTARRARY}}
};
Then, when I debug apisblob.c, it stop at
while (getQInfoParm.gq_genParm.gp_completed==FALSE)
IIapi_Wait(&waitParm);

Cheers,
Hej
Hej is offline   Reply With Quote
Old 2009-12-15   #2 (permalink)
Ingres Corp
 
Join Date: Nov 2007
Posts: 26
Default

You need to track down all references to existing types of form DB_*_TYPE and IIAPI_*_TYPE which are similar in handling to the type you are adding. There are several files in common/aif/aip which reference the LOB types. In particular, the API function IIapi_isBLOB() in apimisc.c needs to include your type if it is formatted in the same way as the three existing LOB types.
thogo01 is offline   Reply With Quote

Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2009 Ingres Corporation. All Rights Reserved