You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Lukas Eder (JIRA)" <ji...@apache.org> on 2012/06/30 11:42:42 UTC
[jira] [Created] (DERBY-5837) Add support for SQL standard DATE,
TIME, TIMESTAMP literals
Lukas Eder created DERBY-5837:
---------------------------------
Summary: Add support for SQL standard DATE, TIME, TIMESTAMP literals
Key: DERBY-5837
URL: https://issues.apache.org/jira/browse/DERBY-5837
Project: Derby
Issue Type: Improvement
Components: SQL
Affects Versions: 10.8.2.2
Reporter: Lukas Eder
Priority: Minor
The SQL standard 1992 specifies <datetime literals> as such:
<datetime literal> ::=
<date literal>
| <time literal>
| <timestamp literal>
<date literal> ::=
DATE <date string>
<time literal> ::=
TIME <time string>
<timestamp literal> ::=
TIMESTAMP <timestamp string>
<date string> ::=
<quote> <date value> <quote>
<time string> ::=
<quote> <time value> [ <time zone interval> ] <quote>
<timestamp string> ::=
<quote> <date value> <space> <time value> [ <time zone interval> ] <quote>
Taken from:
http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
This seems not to be supported directly by Derby. Instead, Derby supports functions for constructing DATE, TIME, TIMESTAMP values. For example:
http://db.apache.org/derby/docs/dev/ref/rreftimestampfunc.html
For increased compatibility, it would be nice if literals were implemented according to the standard. In essence, the function's parentheses could be made optional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DERBY-5837) Add support for SQL standard DATE,
TIME, TIMESTAMP literals
Posted by "Mamta A. Satoor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mamta A. Satoor updated DERBY-5837:
-----------------------------------
Labels: derby_triage10_10 feature (was: )
> Add support for SQL standard DATE, TIME, TIMESTAMP literals
> -----------------------------------------------------------
>
> Key: DERBY-5837
> URL: https://issues.apache.org/jira/browse/DERBY-5837
> Project: Derby
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 10.8.2.2
> Reporter: Lukas Eder
> Priority: Minor
> Labels: derby_triage10_10, feature
>
> The SQL standard 1992 specifies <datetime literals> as such:
> <datetime literal> ::=
> <date literal>
> | <time literal>
> | <timestamp literal>
> <date literal> ::=
> DATE <date string>
> <time literal> ::=
> TIME <time string>
> <timestamp literal> ::=
> TIMESTAMP <timestamp string>
> <date string> ::=
> <quote> <date value> <quote>
> <time string> ::=
> <quote> <time value> [ <time zone interval> ] <quote>
> <timestamp string> ::=
> <quote> <date value> <space> <time value> [ <time zone interval> ] <quote>
> Taken from:
> http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
> This seems not to be supported directly by Derby. Instead, Derby supports functions for constructing DATE, TIME, TIMESTAMP values. For example:
> http://db.apache.org/derby/docs/dev/ref/rreftimestampfunc.html
> For increased compatibility, it would be nice if literals were implemented according to the standard. In essence, the function's parentheses could be made optional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (DERBY-5837) Add support for SQL standard DATE,
TIME, TIMESTAMP literals
Posted by "Mamta A. Satoor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mamta A. Satoor updated DERBY-5837:
-----------------------------------
Urgency: Normal
> Add support for SQL standard DATE, TIME, TIMESTAMP literals
> -----------------------------------------------------------
>
> Key: DERBY-5837
> URL: https://issues.apache.org/jira/browse/DERBY-5837
> Project: Derby
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 10.8.2.2
> Reporter: Lukas Eder
> Priority: Minor
> Labels: derby_triage10_10, feature
>
> The SQL standard 1992 specifies <datetime literals> as such:
> <datetime literal> ::=
> <date literal>
> | <time literal>
> | <timestamp literal>
> <date literal> ::=
> DATE <date string>
> <time literal> ::=
> TIME <time string>
> <timestamp literal> ::=
> TIMESTAMP <timestamp string>
> <date string> ::=
> <quote> <date value> <quote>
> <time string> ::=
> <quote> <time value> [ <time zone interval> ] <quote>
> <timestamp string> ::=
> <quote> <date value> <space> <time value> [ <time zone interval> ] <quote>
> Taken from:
> http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
> This seems not to be supported directly by Derby. Instead, Derby supports functions for constructing DATE, TIME, TIMESTAMP values. For example:
> http://db.apache.org/derby/docs/dev/ref/rreftimestampfunc.html
> For increased compatibility, it would be nice if literals were implemented according to the standard. In essence, the function's parentheses could be made optional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DERBY-5837) Add support for SQL standard DATE,
TIME, TIMESTAMP literals
Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404845#comment-13404845 ]
Knut Anders Hatlen commented on DERBY-5837:
-------------------------------------------
For completeness, Derby also supports JDBC escape syntax:
http://db.apache.org/derby/docs/dev/ref/rrefjdbc12124.html
http://db.apache.org/derby/docs/dev/ref/rrefjdbcescapedate.html
http://db.apache.org/derby/docs/dev/ref/rrefjdbc41784.html
Supporting the SQL syntax too would be nice, though...
> Add support for SQL standard DATE, TIME, TIMESTAMP literals
> -----------------------------------------------------------
>
> Key: DERBY-5837
> URL: https://issues.apache.org/jira/browse/DERBY-5837
> Project: Derby
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 10.8.2.2
> Reporter: Lukas Eder
> Priority: Minor
>
> The SQL standard 1992 specifies <datetime literals> as such:
> <datetime literal> ::=
> <date literal>
> | <time literal>
> | <timestamp literal>
> <date literal> ::=
> DATE <date string>
> <time literal> ::=
> TIME <time string>
> <timestamp literal> ::=
> TIMESTAMP <timestamp string>
> <date string> ::=
> <quote> <date value> <quote>
> <time string> ::=
> <quote> <time value> [ <time zone interval> ] <quote>
> <timestamp string> ::=
> <quote> <date value> <space> <time value> [ <time zone interval> ] <quote>
> Taken from:
> http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
> This seems not to be supported directly by Derby. Instead, Derby supports functions for constructing DATE, TIME, TIMESTAMP values. For example:
> http://db.apache.org/derby/docs/dev/ref/rreftimestampfunc.html
> For increased compatibility, it would be nice if literals were implemented according to the standard. In essence, the function's parentheses could be made optional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira