ZStoredProc1.StoredProcName - '[master].[dbo].[ABTEST;1]' - error as attached previously
ZStoredProc1.StoredProcName - 'ABTEST;1' - ExecProc work (with the error but that's another issue)
Michal
Last edited by miab3 on 05.09.2012, 16:14, edited 1 time in total.
Because UncachedGetTables returns database name in catalog, not in schema.
Hmm this isn't logical for me. I wonder about because in mysql we have only a schema, right? And in MsSQL too. I propose to ask Mark befor changing this... It could have a reason, we don't know about.
Anyway this behavior actually isn't acceptable. If i assign the procedurename @runtime everything is fine..
Ok, now I see where the problem is. Inavlid identifier quoting.
And the same for MySQL. In my mind it should be:
`test`,`ABTEST`;..... right? So why do the quotes wissing here?
I propose to ask Mark befor changing this... It could have a reason, we don't know about.
A reason for what? UncachedGetTables returns database(schema) name in field Catalog for years. The new UncachedGetProcedures you've recently added returned it in Schema, so I made a patch that makes both methods return same data in same fields and it works OK.
And the same for MySQL. In my mind it should be:
`test`,`ABTEST`;..... right? So why do the quotes wissing here?
Quotting is applied using IZIdentifierConvertor, which is smart enough to add quotes only when they are really needed.
Eventually MSSQL's IZIdentifierConvertor is not smart enough to quote procedurename identifier correct.
Last edited by olehs on 05.09.2012, 17:00, edited 1 time in total.
This is strange, because I don't get errors when execute [dbo].[ABTEST];1
EgonHugeist,
MSSQL returns names of procedures like ABTEST;1
where ;1 is not a part of procedure, but the index of overload.
When quoting is applied in PropertyEditor using IZIdentifierConvertor, the whole ProcedureName gets quoted [ABTEST;1] and it shouldn't. It has to be like [ABTEST];1.
But I think the problem is that TZStoredProcedure doesn't handle overloads.
Michael, do you think we can add overloads handling?