Skip to content

Commit

Permalink
fixed an error on test case
Browse files Browse the repository at this point in the history
  • Loading branch information
mtuncer committed Jul 10, 2015
1 parent 13e9bf4 commit 0a59f05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions expected/alter.out
Expand Up @@ -52,16 +52,14 @@ ERROR: INSERT has more expressions than target columns
LINE 1: INSERT INTO test_alter_drop_column (SELECT 3, 5, 8);
^
-- should succeed
INSERT INTO test_alter_drop_column (SELECT 3, 5, 8);
ERROR: INSERT has more expressions than target columns
LINE 1: INSERT INTO test_alter_drop_column (SELECT 3, 5, 8);
^
INSERT INTO test_alter_drop_column (SELECT 5, 8);
SELECT * from test_alter_drop_column;
b | c
---+---
2 | 3
5 | 6
8 | 9
(3 rows)
5 | 8
(4 rows)

DROP FOREIGN TABLE test_alter_drop_column;
2 changes: 1 addition & 1 deletion sql/alter.sql
Expand Up @@ -34,7 +34,7 @@ SELECT b FROM test_alter_drop_column;
INSERT INTO test_alter_drop_column (SELECT 3, 5, 8);

-- should succeed
INSERT INTO test_alter_drop_column (SELECT 3, 5, 8);
INSERT INTO test_alter_drop_column (SELECT 5, 8);

SELECT * from test_alter_drop_column;

Expand Down

0 comments on commit 0a59f05

Please sign in to comment.