From: Rod J. <rod...@in...> - 2003-02-24 20:29:06
|
> 1. Add a boolean instance variable isFunction = false to the > StoredProcedure. This could be set to true if the call is to a function > or left false if it is to a procedure. Then the StoredProcedure could > use the correct syntax while it is "compiling" the callString > > 2. Create a StoredFunction class that does the same thing the current > StoredProcedure does, except for the call syntax. We could use > sub-classing to avoid code duplication > > The first solution is simpler and less code, but maybe not as clear as > the second one. I vote for 1. Simple and backward compatible. Thanks for raising the issue. Rod |