Otis wrote:
I've created a new proc, similar to an existing one but I replaced teh '_' with 'T', so instead of pr_GetEmployeeName, I have prTGetEmployeeName.
I get no errors whatsoever. Everything works.
Though you are right that '_' is used as a wildcard. sp_sproc_columns gives the parameters of all the matching procs.
However as sybase supports stored procedure overloading (with the ;_n_ suffixes) the parameter read routine checks the proc name and if it doesn't match to the current proc, it skips the parameter.
This thus gives no errors and the right parameters retrieved for the right procs.
So for v15, I don't see how this could go wrong (as I can't make it go wrong.. the sp_sproc_columns gives the proper results)
The difference might be in the fact that you're using v12 ? I thought you're using v15 as well.
Anyway, the error you ran into in your startpost is thrown when 'scale' is read from the returned list of parameters. That value is returned by the sp_sproc_columns procedure, and as it's a smallint, it can either be a number (so convert will go ok) or NULL (which will make the routine skip, as it does on varchar parameters for example).
I've tested the driver with [] and it works the same, so I've attached a new build of the driver with [] instead of _ so you can test it out on v12 to see if it fixes things for you.
(the demo you have is the same code as we use, except the designer has some demo related protection code. The rest is the same, e.g. the drivers are the same so that's not it)
The difference might be in the fact that you're using v12 ? I thought you're using v15 as well.
NO ! not same login, not same DB, not same Sybase.Data.AseClient.dll ,more over as you know each time I switch between V12 - V15 I have to change the Llblgen configuration file in order to use the rigth dll version; so I do work on V15!
I've tested the driver with [] and it works the same, so I've attached a new build of the driver with [] instead of _ so you can test it out on v12 to see if it fixes things for you.
thanks but I can't see any difference as you said
I've omitted to say that my driver is an already patched one (You sent it to me last week with IN / OUT proc. parameter direction patch ).
...