Skip to content

Commit

Permalink
Add test for column separator bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoizueta committed Oct 26, 2020
1 parent a8e9119 commit eb66942
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions test/expected/sqlserver_20_query_test.out
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ SELECT * FROM ODBCQuerySize('sqlserver_fdw', 'select * from sqlserver_test_table
1
(1 row)

SELECT * FROM sqlserver_test_table_with_unsupported_initial_column;
id | name
----+------
1 | aaaa
(1 row)
4 changes: 4 additions & 0 deletions test/fixtures/sqlserver_fixtures.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ begin
-- Create fixture
create table sqlserver_test_table(id int, name text);
insert into sqlserver_test_table values (1, 'aaaa');

create table sqlserver_test_table_with_unsupported_initial_column(ignored varbinary(10), id int, name text);
insert into sqlserver_test_table_with_unsupported_initial_column(id, name) values (1, 'aaaa');

end
go
3 changes: 2 additions & 1 deletion test/sql/sqlserver_20_query_test_disabled.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SELECT * FROM sqlserver_test_table;
SELECT * FROM ODBCTablesList('sqlserver_fdw', 1);
SELECT * FROM ODBCTableSize('sqlserver_fdw', 'sqlserver_test_table');
SELECT * FROM ODBCQuerySize('sqlserver_fdw', 'select * from sqlserver_test_table');
SELECT * FROM ODBCQuerySize('sqlserver_fdw', 'select * from sqlserver_test_table');
SELECT * FROM sqlserver_test_table_with_unsupported_initial_column;

0 comments on commit eb66942

Please sign in to comment.