ClickHouse/clickhouse-js

Query containing `;` fails to execute.

lucasavila00 opened this issue · 1 comments

SELECT ';' as x

This query will create a syntax error because of the "removeSemi" function.

clickhouse-js/src/client.ts

Lines 202 to 208 in bd941ec

function removeSemi(query: string) {
const idx = query.indexOf(';')
if (idx !== -1) {
return query.slice(0, idx)
}
return query
}

Resolved in 0.0.7