TimonKK / clickhouse

NodeJS client for ClickHouse
Apache License 2.0
220 stars 122 forks source link

"data.every is not a function" error #128

Closed SEA99 closed 1 year ago

SEA99 commented 1 year ago

error: Exception has occurred: TypeError: data.every is not a function at QueryCursor._getReqParams (.../node_modules/clickhouse/index.js:555:23) at QueryCursor.exec (.../node_modules/clickhouse/index.js:597:24)

call: await ch.query('insert into test1 (id,name) values({id:UInt32},{name:String}) ', { params: { name:'xxx', id:123 } } ).toPromise();

SEA99 commented 1 year ago

I think this will fix: https://github.com/TimonKK/clickhouse/compare/master...SEA99:clickhouse:master