Skip to content

Bind valiable with multi-byte character value causes ERR_CONNECTION_ENDED error after version 1.0.345 #192

@routeone34

Description

@routeone34

Current Behavior

[Error]
SQLiteCloudError: Server ended the connection
at TLSSocket. (/home/ykuwagaki/repo/sqltest/node_modules/@sqlitecloud/drivers/lib/drivers/connection-tls.js:114:44)
at TLSSocket.emit (node:events:536:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
errorCode: 'ERR_CONNECTION_ENDED'

Expected Behavior

No error.

Steps to Reproduce the Problem

[Table]
create table tab1
(
id integer,
tag text
)

[JavaScript]
const tag = "あいうえお"; // Japanese Word
const data = await db.sqlSELECT * FROM tab1 WHERE tag = ${tag};

Environment

  • Version:
    v1.0.289 no error
    v1.0.345 error
    v1.0.354 error
  • Platform: Linux
  • Node.js Version: v22.13.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions