| # Copyright 2016, Quickstep Research Group, Computer Sciences Department, |
| # University of Wisconsin—Madison. |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| CREATE TABLE foo (col1 INT, |
| col2 LONG, |
| col3 DOUBLE, |
| col4 FLOAT, |
| col5 CHAR(5)); |
| CREATE TABLE foo2 (col1 INT, |
| col2 LONG, |
| col3 DOUBLE, |
| col4 FLOAT, |
| averyverylongcolumnnamefortest CHAR(5)); |
| CREATE TABLE foo3 (col1 INT, |
| col2 LONG, |
| col3 DOUBLE, |
| col4 FLOAT, |
| col5 CHAR(5)); |
| CREATE TABLE foo4 (col1 INT, |
| col2 LONG, |
| col3 DOUBLE, |
| col4 FLOAT, |
| col5 CHAR(5)); |
| DROP TABLE TEST; |
| CREATE TABLE averylongtablenamethatseemstoneverend (col1 INT); |
| INSERT INTO averylongtablenamethatseemstoneverend VALUES (1); |
| INSERT INTO averylongtablenamethatseemstoneverend VALUES (2); |
| INSERT INTO averylongtablenamethatseemstoneverend VALUES (3); |
| INSERT INTO foo values(1, 1, 1.0, 1.0, 'XYZ'); |
| INSERT INTO foo values(2, 1, 1.0, 1.0, 'XYZ'); |
| INSERT INTO foo values(3, 1, 1.0, 1.0, 'XYZ'); |
| INSERT INTO foo values(4, 1, 1.0, 1.0, 'XYZ'); |
| INSERT INTO foo values(5, 1, 1.0, 1.0, 'XYZ'); |
| INSERT INTO foo2 values(5, 1, 1.0, 1.0, 'XYZ'); |
| INSERT INTO foo2 values(5, 1, 1.0, 1.0, 'XYZ'); |
| INSERT INTO foo3 values(5, 1, 1.0, 1.0, 'XYZZ'); |
| -- |
| == |
| \dt |
| -- |
| List of relations |
| |
| Name | Type | Blocks |
| +--------------------------------------+-------+---------+ |
| foo | table | 1 |
| foo2 | table | 1 |
| foo3 | table | 1 |
| foo4 | table | 0 |
| averylongtablenamethatseemstoneverend | table | 1 |
| |
| == |
| \dt foo |
| -- |
| List of relations |
| |
| Name | Type | Blocks |
| +-------+-------+---------+ |
| foo | table | 1 |
| |
| == |
| \dt invalidtable |
| -- |
| ERROR: Unrecognized relation invalidtable (1 : 5) |
| \dt invalidtable |
| ^ |