[ https://issues.apache.org/jira/browse/DERBY-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532892 ]
Bryan Pendleton commented on DERBY-957: --------------------------------------- Using assertSQLState seems quite reasonable. However, instead of adding + System.out.println("setFetchSize(-1000) expected to fail"); does it work to instead say + fail("setFetchSize(-1000) expected to fail"); Or am I getting confused between the old harness and the new JUnit style here? > 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.