Skip to content

VarChar encoding problem. #723

@heroboy

Description

@heroboy

see this:

writeParameterData: function(buffer, parameter) {
if (parameter.value != null) {
if (parameter.length <= this.maximumLength) {
buffer.writeUsVarbyte(parameter.value, 'ascii');
} else {
buffer.writePLPBody(parameter.value, 'ascii');
}
} else {
if (parameter.length <= this.maximumLength) {
buffer.writeUInt16LE(NULL);
} else {
buffer.writeUInt32LE(0xFFFFFFFF);
buffer.writeUInt32LE(0xFFFFFFFF);
}

You use the ascii encoding, is it incorrect?
I see you consider the encoding in value-parser.js.
So I find that the input parameter encoding is not correct, the select result is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions