I don't appear to be having any luck using the n_setttexisparam API followed by n_texis to execute the query.
This code fragment:
if (!n_settexisparam(se,1,"KR",(int *)NULL,SQL_C_CHAR,SQL_LONGVARCHAR)) {
printf("setparam failed\n");
} else if(!n_texis(se, "select id from patent where length(pabstract)=?;", sql)) {
FREE_CONFIG();
printf("%s\n", errorString);
}
Produces this result:
SQL: Needed parameters not supplied in the function: execntexis
This code fragment:
if (!n_settexisparam(se,1,"KR",(int *)NULL,SQL_C_CHAR,SQL_LONGVARCHAR)) {
printf("setparam failed\n");
} else if(!n_texis(se, "select id from patent where length(pabstract)=?;", sql)) {
FREE_CONFIG();
printf("%s\n", errorString);
}
Produces this result:
SQL: Needed parameters not supplied in the function: execntexis