Skip to content

Commit 210b87a

Browse files
Copilotmathiasrw
andcommitted
Refactor switch statement to include default case
Co-authored-by: mathiasrw <[email protected]>
1 parent ec64f1c commit 210b87a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/830into.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ alasql.into.SQL = function (filename, opts, data, columns, cb) {
5252
case 'NCHAR':
5353
val = "'" + escapeqq(val) + "'";
5454
break;
55+
default:
56+
if (typeof val == 'string') {
57+
val = "'" + escapeqq(val) + "'";
58+
}
5559
}
5660
} else {
5761
if (typeof val == 'string') {

0 commit comments

Comments
 (0)