Skip to content

Commit

Permalink
Load data fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tbantle22 committed Jul 10, 2023
1 parent 3c5d262 commit 53d0b50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function runTests(database, tests) {
values,
// For LOAD DATA
infileStreamFactory: test.file
? () => fs.createReadStream(test.file)
? () => fs.createReadStream(`${process.cwd()}/${test.file}`)
: undefined,
})
.then((rows) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const tableTests = [
FIELDS TERMINATED BY ',' ENCLOSED BY ''
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;`,
file: "./workbenchTests/testData/update_test_info.csv",
file: "workbenchTests/testData/update_test_info.csv",
res: {
fieldCount: 0,
affectedRows: 3,
Expand Down Expand Up @@ -216,7 +216,7 @@ export const tableTests = [
FIELDS TERMINATED BY '|' ENCLOSED BY ''
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;`,
file: "./workbenchTests/testData/replace_test_info.psv",
file: "workbenchTests/testData/replace_test_info.psv",
res: {
fieldCount: 0,
affectedRows: 6,
Expand Down

0 comments on commit 53d0b50

Please sign in to comment.