Is there any way to remove the year (1-366) days from the date of HLL? Do I have the only option to expand those bids which I need and clearly register the functions? I know that HSQL and DB2 were registered earlier on the day of bids, but there is no luck with Oracle or SQL Server ...
As far as I can tell, the available standard duration fragments Only the year () are, months (), days (), etc., and as long as I'm missing something, these are not enough to calculate Doi ...
< Div class = "post-text" itemprop = "text">
As far as I can tell, the only solution is to increase the existing dialects. Land. It has proven to be quite painless:
public class SQLServerDialect ORGrintDilact. SQLServerDialect {public SQLServerDialect () {registerFunction ("dayofyear", New SQLFunctionTemplate (Hibernate.INTEGER, "Dotpart (day year,? 1)"); }}
Comments
Post a Comment