Re: Error when running tests

2017-08-16 Thread Rick Hillegas

Hi Lashan,

I am unable to reproduce the behavior you are seeing. The tests start 
running when I wire those code sources into a CLASSPATH and execute that 
java command. Can you include the output from the following command:


  echo $CLASSPATH

Thanks,
-Rick

On 8/16/17 6:19 AM, Lashan Faliq wrote:


I have set $CLASSPATH to include the following jars:

  * derbyTesting.jar
  * derbyrun.jar
  * junit.jar
  * trunk/classes

still when I run

java org.apache.derbyTesting.functionTests.harness.RunSuite derbyall

I get the error

Error: Could not find or load main class 
org.apache.derbyTesting.functionTests.harness.RunSuite


Can you please guide me on what to do next.

Thank you.

Sent from Mail  for 
Windows 10






[jira] [Commented] (DERBY-6956) Create table as Select cannot copy Decimal columns

2017-08-16 Thread Rick Hillegas (JIRA)

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

Rick Hillegas commented on DERBY-6956:
--

Thanks, Bryan. I have committed the derby-6956-01-aa-removeSpuriousCheck.diff 
patch.

> Create table as Select cannot copy Decimal columns
> --
>
> Key: DERBY-6956
> URL: https://issues.apache.org/jira/browse/DERBY-6956
> Project: Derby
>  Issue Type: Bug
>  Components: JDBC, SQL
>Affects Versions: 10.13.1.1
> Environment: Windows 7, DataGrip
>Reporter: Murat Cengiz
>  Labels: newbie
> Attachments: derby-6956-01-aa-removeSpuriousCheck.diff, withTest.diff
>
>
> I create a test table with the following query:
> CREATE TABLE "DERBYTEST" ("STRINGCOLUMN" varchar(255), "INTEGERCOLUMN" 
> integer, "SHORTCOLUMN" varchar(255), "LONGCOLUMN" bigint, "DOUBLECOLUMN" 
> double, "FLOATCOLUMN" double, "DECIMALCOLUMN" decimal(31, 6), "BOOLEANCOLUMN" 
> smallint, "DATECOLUMN" timestamp, "DATETIMECOLUMN" timestamp, "ID" integer, 
> "LASTMODTIME" timestamp, PRIMARY KEY ("ID"))
> this query completes successfully
> I later try to copy the table with the following query:
> CREATE TABLE "DERBYTEST_TEMP" AS SELECT * FROM DERBYTEST WITH NO DATA
> This throws the following exception:
> [42X71][3] Invalid data type 'DECIMAL(31, 6)' for column 'DECIMALCOLUMN'
> Everything works perfectly fine if I remove the decimal column.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (DERBY-6956) Create table as Select cannot copy Decimal columns

2017-08-16 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on DERBY-6956:


Commit 1805249 from [~rhillegas] in branch 'code/trunk'
[ https://svn.apache.org/r1805249 ]

DERBY-6956: Commit patch derby-6956-01-aa-removeSpuriousCheck.diff, removing a 
needless restriction on the kind of DECIMAL types which can be column types in 
a CREATE TABLE AS SELECT statement.

> Create table as Select cannot copy Decimal columns
> --
>
> Key: DERBY-6956
> URL: https://issues.apache.org/jira/browse/DERBY-6956
> Project: Derby
>  Issue Type: Bug
>  Components: JDBC, SQL
>Affects Versions: 10.13.1.1
> Environment: Windows 7, DataGrip
>Reporter: Murat Cengiz
>  Labels: newbie
> Attachments: derby-6956-01-aa-removeSpuriousCheck.diff, withTest.diff
>
>
> I create a test table with the following query:
> CREATE TABLE "DERBYTEST" ("STRINGCOLUMN" varchar(255), "INTEGERCOLUMN" 
> integer, "SHORTCOLUMN" varchar(255), "LONGCOLUMN" bigint, "DOUBLECOLUMN" 
> double, "FLOATCOLUMN" double, "DECIMALCOLUMN" decimal(31, 6), "BOOLEANCOLUMN" 
> smallint, "DATECOLUMN" timestamp, "DATETIMECOLUMN" timestamp, "ID" integer, 
> "LASTMODTIME" timestamp, PRIMARY KEY ("ID"))
> this query completes successfully
> I later try to copy the table with the following query:
> CREATE TABLE "DERBYTEST_TEMP" AS SELECT * FROM DERBYTEST WITH NO DATA
> This throws the following exception:
> [42X71][3] Invalid data type 'DECIMAL(31, 6)' for column 'DECIMALCOLUMN'
> Everything works perfectly fine if I remove the decimal column.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


Error when running tests

2017-08-16 Thread Lashan Faliq
I have set $CLASSPATH to include the following jars:
• derbyTesting.jar
• derbyrun.jar
• junit.jar 
• trunk/classes
still when I run 
java org.apache.derbyTesting.functionTests.harness.RunSuite derbyall
I get the error 
Error: Could not find or load main class  
org.apache.derbyTesting.functionTests.harness.RunSuite

Can you please guide me on what to do next.
Thank you.

Sent from Mail for Windows 10