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:25:50 GMT

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

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

Although statementJdbc20 is a canon based test, parts of it use assertions:

			// verify that table was not created
			try
			{
				rs = stmt.executeQuery("select * from trash");
				System.out.println("select from trash expected to fail");
			}
			catch (SQLException e)
			{
              BaseJDBCTestCase.assertSQLState("42X05", e);
			}

We could fix the failures by using BaseJDBCTestCase.assertSQLState() in more of the test cases.

> 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
>
> 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