ZStoredProc and FB2.1
Posted: 16.10.2009, 14:20
Hi,
I've recently installed ZeosLIB 6.6 stable and converted an application from IBX components to Z. The queries etc. generally works ok, but the ZStoredProc give me headaches. First, it's important to note the stored procedures and the field names are case sencitive. I found that if I don't include the procedure names in quotes while entering them in the StoredProcName propperty, ZeosLIB does not quote the entry and it gets converted to uppercase in the SQL, resulting in procedure not found.
This is different from IBX, but not neceserraly wrong. but the problem is that my parameters is not automatically populated at runtime, resulting in a statement like:
sp->ParamByName("ParamName")->....
giving the runtime error "parameter ParamName not found".
I know that recoding the SP's into read-only queries will fix the problem, but I perceive that this is probably some kind of a bug, not sure if it's only with quoted procedure names / parameters.
Are anyone else experiencing this?
Thanks,
MJ
I've recently installed ZeosLIB 6.6 stable and converted an application from IBX components to Z. The queries etc. generally works ok, but the ZStoredProc give me headaches. First, it's important to note the stored procedures and the field names are case sencitive. I found that if I don't include the procedure names in quotes while entering them in the StoredProcName propperty, ZeosLIB does not quote the entry and it gets converted to uppercase in the SQL, resulting in procedure not found.
This is different from IBX, but not neceserraly wrong. but the problem is that my parameters is not automatically populated at runtime, resulting in a statement like:
sp->ParamByName("ParamName")->....
giving the runtime error "parameter ParamName not found".
I know that recoding the SP's into read-only queries will fix the problem, but I perceive that this is probably some kind of a bug, not sure if it's only with quoted procedure names / parameters.
Are anyone else experiencing this?
Thanks,
MJ