Skip to content

Commit a86ca8f

Browse files
committed
Fix tests
1 parent ebd4b84 commit a86ca8f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ build
55
.vscode/
66
libchdb.so
77
chdb.h
8+
chdb.hpp

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('chDB Queries', function () {
7878

7979
session.query("USE testdb; INSERT INTO testtable VALUES (1), (2), (3);");
8080

81-
const ret = session.query("SELECT * FROM testtable;", "CSV");
81+
const ret = session.query("SELECT * FROM testdb.testtable;", "CSV");
8282
console.log("Session Query Result:", ret);
8383
expect(ret).to.be.a('string');
8484
expect(ret).to.include('1');
@@ -93,7 +93,7 @@ describe('chDB Queries', function () {
9393
});
9494

9595
it('should return result of the query made using bind parameters', () => {
96-
const ret = session.queryBind("SELECT * from testtable where id > {id: UInt32}", { id: 2}, "CSV");
96+
const ret = session.queryBind("SELECT * from testdb.testtable where id > {id: UInt32}", { id: 2}, "CSV");
9797
console.log("Bind Session result:", ret);
9898
expect(ret).to.not.include('1');
9999
expect(ret).to.not.include('2');

0 commit comments

Comments
 (0)