db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-957) Long passed into an exception gets displayed using locale specific formatting. i18n/locale issue
Date Sat, 06 Oct 2007 15:54:50 GMT

    [ https://issues.apache.org/jira/browse/DERBY-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532900
] 

Knut Anders Hatlen commented on DERBY-957:
------------------------------------------

You're right, calling junit.framework.Assert.fail() should also work. The only difference
is that it will stop the test, whereas with System.out.println() the test continues after
the failure. But since the test is not yet a JUnit test, I'm not sure we should add to many
of the JUnit constructs. I think assertSQLState() makes sense since it helps us work around
a problem with canon based tests. I don't think using fail() gives us anything more than println()
in this test, though.

> Long passed into an exception gets displayed using locale specific formatting. i18n/locale
issue
> ------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-957
>                 URL: https://issues.apache.org/jira/browse/DERBY-957
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure, Test
>    Affects Versions: 10.2.1.6, 10.3.1.4
>         Environment: OS: Microsoft(R) Windows(R) Server 2003 - CYGWIN_NT-5.2 1.5.12(0.116/4/2),
JVM: Sun Microsystems Inc. 1.5.0_04
>            Reporter: Ole Solberg
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: d957.diff
>
>
> Diff:
> ********* Diff file derbyall/jdbc20/statementJdbc20.diff
> *** Start: statementJdbc20 jdk1.5.0_04 derbyall:jdbc20 2006-01-30 06:51:48 ***
> 3 del
> < SQLSTATE(XJ065): SQL Exception: Invalid parameter value '-1,000' for Statement.setFetchSize(int
rows).
> 3a3
> > SQLSTATE(XJ065): SQL Exception: Invalid parameter value '-1 000' for Statement.setFetchSize(int
rows).
> 5 del
> < SQLSTATE(XJ064): SQL Exception: Invalid parameter value '-1,000' for setFetchDirection(int
direction).
> 5a5
> > SQLSTATE(XJ064): SQL Exception: Invalid parameter value '-1 000' for setFetchDirection(int
direction).
> 18 del
> < SQLSTATE(XJ062): SQL Exception: Invalid parameter value '-2,000' for ResultSet.setFetchSize(int
rows).
> 18a18
> > SQLSTATE(XJ062): SQL Exception: Invalid parameter value '-2 000' for ResultSet.setFetchSize(int
rows).
> Test Failed.
> *** End:   statementJdbc20 jdk1.5.0_04 derbyall:jdbc20 2006-01-30 06:52:05 ***
> http://www.multinet.no/~solberg/public/Apache/Derby/testlog/CYGWIN_NT-5.2_i686-unknown/373335-derbyall_diff.txt
> Duplicate in DERBY-987

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


Mime
View raw message