Hello,
I write a new Dialect for die Database Gupta SQLBase. I registry the Database-Functions, with RegisterFunction.
Example:
RegisterFunction("upper", new StandardSQLFunction("@UPPER"));
This Function is working. I see this translation in the "sqlFunctions" object, at the runtime.
Example:
session.Dialect.Funtion["upper"] is "@UPPER".
NHibernate don't translate the HQL-Statement.
Example
SELECT upper(columnXYZ) FROM tableXYZ
the result
SELECT upper(columnXYZ) FROM tableXYZ
it not work. I want the result
SELECT @UPPER(columnXYZ) FROM tableXYZ
I don't find the location how translate the Function in the source code. I have write "RegisterFunction("upper", new StandardSQLFunction("@UPPER")); " in a other Dialect with the self result.
Why don't working the translation?? It this a bug or must I do something before I use the Function "RegisterFunction"??
P.S. sorry, because of my bad English.
With friendly regards
Matthias
|