[jira] Updated: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32)))

2010-07-11 Thread Mike Matrigali (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Matrigali updated DERBY-3856:
--


backporting change #952581 from trunk to 10.6 branch.

m106_jdk16:14>svn commit
Sending.
Sendingjava/engine/org/apache/derby/iapi/types/SQLDate.java
Sendingjava/engine/org/apache/derby/iapi/types/SQLTimestamp.java
Sending
java/testing/org/apache/derbyTesting/functionTests/tests/lang/DateTimeTest.java
Transmitting file data ...
Committed revision 963150.


> difference between Embedded vs DerbyNetClient in format of return from 
> timestamp(cast(? as varchar(32)))
> 
>
> Key: DERBY-3856
> URL: https://issues.apache.org/jira/browse/DERBY-3856
> Project: Derby
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.1.1
>Reporter: Myrna van Lunteren
>Assignee: Mike Matrigali
> Fix For: 10.7.0.0
>
> Attachments: fix.diff
>
>
> There is a slight difference in how Embedded vs. DerbyNetClient return a 
> specific cast.
> This showed up during conversion of the test lang/datetime.sql which before 
> was only run with Embedded...
> The following sql: 
> prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
> varchar(32';
> execute dateTimePS using 'values(cast(1 as integer), 
> ''2003-03-05-17.05.43.11'')';
> gives:
>1 |2 
>-
> Embedded: 1970-01-01|2003-03-05-17.05.43.11
> DerbyNetClient:  1970-01-01|2003-03-05 17:05:43.11
> (in Embedded there's a '-' between date and time part, with DerbyNetClient a 
> space; with Embedded the separator between time elements is ., with 
> DerbyNetClient :. Embedded reflects the data as passed in, with 
> DerbyNetClient it seems to be the default timestamp format).
> I am not sure which is correct at this point, but I confirmed the behavior is 
> like this in latest builds of trunk and 10.3 and 10.4 branches.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32)))

2010-07-09 Thread Mike Matrigali (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Matrigali updated DERBY-3856:
--


backporting change #952581 from trunk to 10.5 branch.

m105_jdk16:37>svn commit
Sending.
Sendingjava/engine/org/apache/derby/iapi/types/SQLDate.java
Sendingjava/engine/org/apache/derby/iapi/types/SQLTimestamp.java
Sending
java/testing/org/apache/derbyTesting/functionTests/tests/lang/DateTimeTest.java
Transmitting file data ...
Committed revision 962640.


> difference between Embedded vs DerbyNetClient in format of return from 
> timestamp(cast(? as varchar(32)))
> 
>
> Key: DERBY-3856
> URL: https://issues.apache.org/jira/browse/DERBY-3856
> Project: Derby
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.1.1
>Reporter: Myrna van Lunteren
>Assignee: Mike Matrigali
> Fix For: 10.7.0.0
>
> Attachments: fix.diff
>
>
> There is a slight difference in how Embedded vs. DerbyNetClient return a 
> specific cast.
> This showed up during conversion of the test lang/datetime.sql which before 
> was only run with Embedded...
> The following sql: 
> prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
> varchar(32';
> execute dateTimePS using 'values(cast(1 as integer), 
> ''2003-03-05-17.05.43.11'')';
> gives:
>1 |2 
>-
> Embedded: 1970-01-01|2003-03-05-17.05.43.11
> DerbyNetClient:  1970-01-01|2003-03-05 17:05:43.11
> (in Embedded there's a '-' between date and time part, with DerbyNetClient a 
> space; with Embedded the separator between time elements is ., with 
> DerbyNetClient :. Embedded reflects the data as passed in, with 
> DerbyNetClient it seems to be the default timestamp format).
> I am not sure which is correct at this point, but I confirmed the behavior is 
> like this in latest builds of trunk and 10.3 and 10.4 branches.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32)))

2010-07-07 Thread Mike Matrigali (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Matrigali updated DERBY-3856:
--

Assignee: Mike Matrigali  (was: Knut Anders Hatlen)

i am working on backporting this issue.

> difference between Embedded vs DerbyNetClient in format of return from 
> timestamp(cast(? as varchar(32)))
> 
>
> Key: DERBY-3856
> URL: https://issues.apache.org/jira/browse/DERBY-3856
> Project: Derby
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.1.1
>Reporter: Myrna van Lunteren
>Assignee: Mike Matrigali
> Fix For: 10.7.0.0
>
> Attachments: fix.diff
>
>
> There is a slight difference in how Embedded vs. DerbyNetClient return a 
> specific cast.
> This showed up during conversion of the test lang/datetime.sql which before 
> was only run with Embedded...
> The following sql: 
> prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
> varchar(32';
> execute dateTimePS using 'values(cast(1 as integer), 
> ''2003-03-05-17.05.43.11'')';
> gives:
>1 |2 
>-
> Embedded: 1970-01-01|2003-03-05-17.05.43.11
> DerbyNetClient:  1970-01-01|2003-03-05 17:05:43.11
> (in Embedded there's a '-' between date and time part, with DerbyNetClient a 
> space; with Embedded the separator between time elements is ., with 
> DerbyNetClient :. Embedded reflects the data as passed in, with 
> DerbyNetClient it seems to be the default timestamp format).
> I am not sure which is correct at this point, but I confirmed the behavior is 
> like this in latest builds of trunk and 10.3 and 10.4 branches.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32)))

2010-06-07 Thread Knut Anders Hatlen (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Knut Anders Hatlen updated DERBY-3856:
--

Issue & fix info: [Patch Available]

All the regression tests ran cleanly with the patch.

> difference between Embedded vs DerbyNetClient in format of return from 
> timestamp(cast(? as varchar(32)))
> 
>
> Key: DERBY-3856
> URL: https://issues.apache.org/jira/browse/DERBY-3856
> Project: Derby
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.1.1
>Reporter: Myrna van Lunteren
>Assignee: Knut Anders Hatlen
> Attachments: fix.diff
>
>
> There is a slight difference in how Embedded vs. DerbyNetClient return a 
> specific cast.
> This showed up during conversion of the test lang/datetime.sql which before 
> was only run with Embedded...
> The following sql: 
> prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
> varchar(32';
> execute dateTimePS using 'values(cast(1 as integer), 
> ''2003-03-05-17.05.43.11'')';
> gives:
>1 |2 
>-
> Embedded: 1970-01-01|2003-03-05-17.05.43.11
> DerbyNetClient:  1970-01-01|2003-03-05 17:05:43.11
> (in Embedded there's a '-' between date and time part, with DerbyNetClient a 
> space; with Embedded the separator between time elements is ., with 
> DerbyNetClient :. Embedded reflects the data as passed in, with 
> DerbyNetClient it seems to be the default timestamp format).
> I am not sure which is correct at this point, but I confirmed the behavior is 
> like this in latest builds of trunk and 10.3 and 10.4 branches.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32)))

2010-06-07 Thread Knut Anders Hatlen (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Knut Anders Hatlen updated DERBY-3856:
--

Attachment: fix.diff

Attaching a suggested fix for the issue. I have only run DateTimeTest on it yet.

Changes made by the patch:

java/engine/org/apache/derby/iapi/types/SQLTimestamp.java:
java/engine/org/apache/derby/iapi/types/SQLDate.java:

  - Don't set valueString in parseTimestamp()/parseDate(). Since it's left as 
null, it will be generated (and cached) on the first invocation of getString(), 
and it will be on a normalized form.

java/testing/org/apache/derbyTesting/functionTests/tests/lang/DateTimeTest.java:

  - Removed code to work around this issue.

  - Added regression test cases for TIMESTAMP, DATE and TIME.

> difference between Embedded vs DerbyNetClient in format of return from 
> timestamp(cast(? as varchar(32)))
> 
>
> Key: DERBY-3856
> URL: https://issues.apache.org/jira/browse/DERBY-3856
> Project: Derby
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.1.1
>Reporter: Myrna van Lunteren
>Assignee: Knut Anders Hatlen
> Attachments: fix.diff
>
>
> There is a slight difference in how Embedded vs. DerbyNetClient return a 
> specific cast.
> This showed up during conversion of the test lang/datetime.sql which before 
> was only run with Embedded...
> The following sql: 
> prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
> varchar(32';
> execute dateTimePS using 'values(cast(1 as integer), 
> ''2003-03-05-17.05.43.11'')';
> gives:
>1 |2 
>-
> Embedded: 1970-01-01|2003-03-05-17.05.43.11
> DerbyNetClient:  1970-01-01|2003-03-05 17:05:43.11
> (in Embedded there's a '-' between date and time part, with DerbyNetClient a 
> space; with Embedded the separator between time elements is ., with 
> DerbyNetClient :. Embedded reflects the data as passed in, with 
> DerbyNetClient it seems to be the default timestamp format).
> I am not sure which is correct at this point, but I confirmed the behavior is 
> like this in latest builds of trunk and 10.3 and 10.4 branches.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32)))

2009-08-17 Thread Knut Anders Hatlen (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Knut Anders Hatlen updated DERBY-3856:
--

Bug behavior facts: [Deviation from standard, Embedded/Client difference]  
(was: [Deviation from standard])

> difference between Embedded vs DerbyNetClient in format of return from 
> timestamp(cast(? as varchar(32)))
> 
>
> Key: DERBY-3856
> URL: https://issues.apache.org/jira/browse/DERBY-3856
> Project: Derby
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.1.1
>Reporter: Myrna van Lunteren
>
> There is a slight difference in how Embedded vs. DerbyNetClient return a 
> specific cast.
> This showed up during conversion of the test lang/datetime.sql which before 
> was only run with Embedded...
> The following sql: 
> prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
> varchar(32';
> execute dateTimePS using 'values(cast(1 as integer), 
> ''2003-03-05-17.05.43.11'')';
> gives:
>1 |2 
>-
> Embedded: 1970-01-01|2003-03-05-17.05.43.11
> DerbyNetClient:  1970-01-01|2003-03-05 17:05:43.11
> (in Embedded there's a '-' between date and time part, with DerbyNetClient a 
> space; with Embedded the separator between time elements is ., with 
> DerbyNetClient :. Embedded reflects the data as passed in, with 
> DerbyNetClient it seems to be the default timestamp format).
> I am not sure which is correct at this point, but I confirmed the behavior is 
> like this in latest builds of trunk and 10.3 and 10.4 branches.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32)))

2009-07-03 Thread Kristian Waagan (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kristian Waagan updated DERBY-3856:
---

   Urgency: Normal
Bug behavior facts: [Deviation from standard]

Triaged July 3, 2009:  Assigned normal urgency, marked as Deviation from 
standard.

> difference between Embedded vs DerbyNetClient in format of return from 
> timestamp(cast(? as varchar(32)))
> 
>
> Key: DERBY-3856
> URL: https://issues.apache.org/jira/browse/DERBY-3856
> Project: Derby
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.1.1
>Reporter: Myrna van Lunteren
>
> There is a slight difference in how Embedded vs. DerbyNetClient return a 
> specific cast.
> This showed up during conversion of the test lang/datetime.sql which before 
> was only run with Embedded...
> The following sql: 
> prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
> varchar(32';
> execute dateTimePS using 'values(cast(1 as integer), 
> ''2003-03-05-17.05.43.11'')';
> gives:
>1 |2 
>-
> Embedded: 1970-01-01|2003-03-05-17.05.43.11
> DerbyNetClient:  1970-01-01|2003-03-05 17:05:43.11
> (in Embedded there's a '-' between date and time part, with DerbyNetClient a 
> space; with Embedded the separator between time elements is ., with 
> DerbyNetClient :. Embedded reflects the data as passed in, with 
> DerbyNetClient it seems to be the default timestamp format).
> I am not sure which is correct at this point, but I confirmed the behavior is 
> like this in latest builds of trunk and 10.3 and 10.4 branches.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32)))

2008-11-18 Thread Kathey Marsden (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kathey Marsden updated DERBY-3856:
--

Component/s: SQL

> difference between Embedded vs DerbyNetClient in format of return from 
> timestamp(cast(? as varchar(32)))
> 
>
> Key: DERBY-3856
> URL: https://issues.apache.org/jira/browse/DERBY-3856
> Project: Derby
>  Issue Type: Bug
>  Components: SQL
>Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.0.0
>Reporter: Myrna van Lunteren
>
> There is a slight difference in how Embedded vs. DerbyNetClient return a 
> specific cast.
> This showed up during conversion of the test lang/datetime.sql which before 
> was only run with Embedded...
> The following sql: 
> prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
> varchar(32';
> execute dateTimePS using 'values(cast(1 as integer), 
> ''2003-03-05-17.05.43.11'')';
> gives:
>1 |2 
>-
> Embedded: 1970-01-01|2003-03-05-17.05.43.11
> DerbyNetClient:  1970-01-01|2003-03-05 17:05:43.11
> (in Embedded there's a '-' between date and time part, with DerbyNetClient a 
> space; with Embedded the separator between time elements is ., with 
> DerbyNetClient :. Embedded reflects the data as passed in, with 
> DerbyNetClient it seems to be the default timestamp format).
> I am not sure which is correct at this point, but I confirmed the behavior is 
> like this in latest builds of trunk and 10.3 and 10.4 branches.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32)))

2008-08-29 Thread Dag H. Wanvik (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dag H. Wanvik updated DERBY-3856:
-

Comment: was deleted

> difference between Embedded vs DerbyNetClient in format of return from 
> timestamp(cast(? as varchar(32)))
> 
>
> Key: DERBY-3856
> URL: https://issues.apache.org/jira/browse/DERBY-3856
> Project: Derby
>  Issue Type: Bug
>Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.0.0
>Reporter: Myrna van Lunteren
>
> There is a slight difference in how Embedded vs. DerbyNetClient return a 
> specific cast.
> This showed up during conversion of the test lang/datetime.sql which before 
> was only run with Embedded...
> The following sql: 
> prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
> varchar(32';
> execute dateTimePS using 'values(cast(1 as integer), 
> ''2003-03-05-17.05.43.11'')';
> gives:
>1 |2 
>-
> Embedded: 1970-01-01|2003-03-05-17.05.43.11
> DerbyNetClient:  1970-01-01|2003-03-05 17:05:43.11
> (in Embedded there's a '-' between date and time part, with DerbyNetClient a 
> space; with Embedded the separator between time elements is ., with 
> DerbyNetClient :. Embedded reflects the data as passed in, with 
> DerbyNetClient it seems to be the default timestamp format).
> I am not sure which is correct at this point, but I confirmed the behavior is 
> like this in latest builds of trunk and 10.3 and 10.4 branches.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32)))

2008-08-29 Thread Dag H. Wanvik (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dag H. Wanvik updated DERBY-3856:
-

Comment: was deleted

> difference between Embedded vs DerbyNetClient in format of return from 
> timestamp(cast(? as varchar(32)))
> 
>
> Key: DERBY-3856
> URL: https://issues.apache.org/jira/browse/DERBY-3856
> Project: Derby
>  Issue Type: Bug
>Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.0.0
>Reporter: Myrna van Lunteren
>
> There is a slight difference in how Embedded vs. DerbyNetClient return a 
> specific cast.
> This showed up during conversion of the test lang/datetime.sql which before 
> was only run with Embedded...
> The following sql: 
> prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
> varchar(32';
> execute dateTimePS using 'values(cast(1 as integer), 
> ''2003-03-05-17.05.43.11'')';
> gives:
>1 |2 
>-
> Embedded: 1970-01-01|2003-03-05-17.05.43.11
> DerbyNetClient:  1970-01-01|2003-03-05 17:05:43.11
> (in Embedded there's a '-' between date and time part, with DerbyNetClient a 
> space; with Embedded the separator between time elements is ., with 
> DerbyNetClient :. Embedded reflects the data as passed in, with 
> DerbyNetClient it seems to be the default timestamp format).
> I am not sure which is correct at this point, but I confirmed the behavior is 
> like this in latest builds of trunk and 10.3 and 10.4 branches.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32)))

2008-08-26 Thread Myrna van Lunteren (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Myrna van Lunteren updated DERBY-3856:
--

Description: 
There is a slight difference in how Embedded vs. DerbyNetClient return a 
specific cast.
This showed up during conversion of the test lang/datetime.sql which before was 
only run with Embedded...

The following sql: 
prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
varchar(32';
execute dateTimePS using 'values(cast(1 as integer), 
''2003-03-05-17.05.43.11'')';
gives:
   1 |2 
   -
Embedded: 1970-01-01|2003-03-05-17.05.43.11
DerbyNetClient:  1970-01-01|2003-03-05 17:05:43.11
(in Embedded there's a '-' between date and time part, with DerbyNetClient a 
space; with Embedded the separator between time elements is ., with 
DerbyNetClient :. Embedded reflects the data as passed in, with DerbyNetClient 
it seems to be the default timestamp format).

I am not sure which is correct at this point, but I confirmed the behavior is 
like this in latest builds of trunk and 10.3 and 10.4 branches.

  was:
There is a slight difference in how Embedded vs. DerbyNetClient return a 
specific cast.
This showed up during conversion of the test lang/datetime.sql which before was 
only run with Embedded...

The following sql: 
prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
varchar(32';
execute dateTimePS using 'values(cast(1 as integer), 
''2003-03-05-17.05.43.11'')';
gives:
   1 |2 
   -
Embedded: 1970-01-01|2003-03-05-17.05.43.11
DerbyNetClient:  1970-01-01|2003-03-05 17.05.43.11
(in Embedded there's a '-' between date and time part, with DerbyNetClient a 
space).

I am not sure which is correct at this point, but I confirmed the behavior is 
like this in latest builds of trunk and 10.3 and 10.4 branches.


> difference between Embedded vs DerbyNetClient in format of return from 
> timestamp(cast(? as varchar(32)))
> 
>
> Key: DERBY-3856
> URL: https://issues.apache.org/jira/browse/DERBY-3856
> Project: Derby
>  Issue Type: Bug
>Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.0.0
>Reporter: Myrna van Lunteren
>
> There is a slight difference in how Embedded vs. DerbyNetClient return a 
> specific cast.
> This showed up during conversion of the test lang/datetime.sql which before 
> was only run with Embedded...
> The following sql: 
> prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
> varchar(32';
> execute dateTimePS using 'values(cast(1 as integer), 
> ''2003-03-05-17.05.43.11'')';
> gives:
>1 |2 
>-
> Embedded: 1970-01-01|2003-03-05-17.05.43.11
> DerbyNetClient:  1970-01-01|2003-03-05 17:05:43.11
> (in Embedded there's a '-' between date and time part, with DerbyNetClient a 
> space; with Embedded the separator between time elements is ., with 
> DerbyNetClient :. Embedded reflects the data as passed in, with 
> DerbyNetClient it seems to be the default timestamp format).
> I am not sure which is correct at this point, but I confirmed the behavior is 
> like this in latest builds of trunk and 10.3 and 10.4 branches.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (DERBY-3856) difference between Embedded vs DerbyNetClient in format of return from timestamp(cast(? as varchar(32)))

2008-08-26 Thread Myrna van Lunteren (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Myrna van Lunteren updated DERBY-3856:
--

Description: 
There is a slight difference in how Embedded vs. DerbyNetClient return a 
specific cast.
This showed up during conversion of the test lang/datetime.sql which before was 
only run with Embedded...

The following sql: 
prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
varchar(32';
execute dateTimePS using 'values(cast(1 as integer), 
''2003-03-05-17.05.43.11'')';
gives:
   1 |2 
   -
Embedded: 1970-01-01|2003-03-05-17.05.43.11
DerbyNetClient:  1970-01-01|2003-03-05 17.05.43.11
(in Embedded there's a '-' between date and time part, with DerbyNetClient a 
space).

I am not sure which is correct at this point, but I confirmed the behavior is 
like this in latest builds of trunk and 10.3 and 10.4 branches.

  was:
There is a slight difference in how Embedded vs. DerbyNetClient return a 
specific cast.
This showed up during conversion of the test lang/datetime.sql which before was 
only run with Embedded...

The following sql: 
prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
varchar(32';
execute dateTimePS using 'values(cast(1 as integer), 
''2003-03-05-17.05.43.11'')';
gives:
   1 |2 
   -
Embedded: 1970-01-01|2003-03-05-17.05.43.11
DerbyNetClient:  1970-01-01|2003-03-05 17.05.43.11
(in Embedded there's a '-' between date and time part, with DerbyNetClient a 
space).

I am not sure which is correct at this point, but I confirmed this is the same 
in latest builds of trunk and 10.3 and 10.4 branches.


> difference between Embedded vs DerbyNetClient in format of return from 
> timestamp(cast(? as varchar(32)))
> 
>
> Key: DERBY-3856
> URL: https://issues.apache.org/jira/browse/DERBY-3856
> Project: Derby
>  Issue Type: Bug
>Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.0.0
>Reporter: Myrna van Lunteren
>
> There is a slight difference in how Embedded vs. DerbyNetClient return a 
> specific cast.
> This showed up during conversion of the test lang/datetime.sql which before 
> was only run with Embedded...
> The following sql: 
> prepare dateTimePS as 'values( date(cast(? as integer)),timestamp(cast(? as 
> varchar(32';
> execute dateTimePS using 'values(cast(1 as integer), 
> ''2003-03-05-17.05.43.11'')';
> gives:
>1 |2 
>-
> Embedded: 1970-01-01|2003-03-05-17.05.43.11
> DerbyNetClient:  1970-01-01|2003-03-05 17.05.43.11
> (in Embedded there's a '-' between date and time part, with DerbyNetClient a 
> space).
> I am not sure which is correct at this point, but I confirmed the behavior is 
> like this in latest builds of trunk and 10.3 and 10.4 branches.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.