[ http://issues.apache.org/jira/browse/DDLUTILS-38?page=all ]
JuanFran Adame Lorite updated DDLUTILS-38:
------------------------------------------
Attachment: MSSqlBuilder.java
SqlBuilder.java
The solution is not very elegant :(
A new DateFormat appears in SqlBuilder class for formatting timestamp values,
_valueDateTimeFormat, which is set in setLocaleValue.
All _value[...]Format fields are declared as protected to be accessible from
inheritance classes, as MSSqlBuilder is.
MSSqlBuilder overrides getValueAsString method to implements the value
formatting for time/date/timestamp column types, rest of column types
formatting is delegated to super (SqlBuilder) method.
> Support for international date/time format in MSSQL
> ---------------------------------------------------
>
> Key: DDLUTILS-38
> URL: http://issues.apache.org/jira/browse/DDLUTILS-38
> Project: DdlUtils
> Type: Improvement
> Reporter: JuanFran Adame Lorite
> Assignee: Thomas Dudziak
> Attachments: MSSqlBuilder.java, SqlBuilder.java
>
> MS SQL supports time, date, timestamp formats independents of locale in use.
> This patch set these formats as default (when no locale is set in SqlBuilder)
> to format date/time/timestamp values in SQL expressions.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira