dzitkowskik / mini-dos

Project for Distributed Operating Systems at Warsaw University of Technology (Mathematics and Computer Science department) Winter 2015
Apache License 2.0
0 stars 0 forks source link

BUG on SELECT #75

Closed dzitkowskik closed 8 years ago

dzitkowskik commented 8 years ago

These is an error when client wants to perform query to get one column of a table, for example:

CREATE TABLE T2(ID1 INTEGER, ID2 INTEGER);
INSERT INTO T2 VALUES(1,9);
INSERT INTO T2 VALUES(2,10);
SELECT ID1 FROM T2;

we get:

ddbms> SELECT ID2 FROM T2;
DEBUG (Client.java:54) Command: SELECT ID2 FROM T2;
Exception in thread "main" java.lang.IllegalArgumentException: Illegal Capacity: -1
davidmigloz commented 8 years ago

Fixed