db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "JuanFran Adame Lorite (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DDLUTILS-38) Support for international date/time format in MSSQL
Date Fri, 28 Oct 2005 09:09:55 GMT
     [ http://issues.apache.org/jira/browse/DDLUTILS-38?page=all ]

JuanFran Adame Lorite updated DDLUTILS-38:

    Attachment: MSSqlBuilder.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:
For more information on JIRA, see:

View raw message