Skip to content

<null> values from server will be updated to string "null" into the websql db #21

@SuperMario77

Description

@SuperMario77

Hello,

I just noticed that all my values from the server are now a string "null" after I send updates from server to the client.

On INSERT it works fine, because you use placeholder '?' in the INSERT statement.

But in the UPDATE statement you write the following in line 473 (_buildUpdateSQL):

for (var i = 0; i < nb; i++) {
    sql += '"' + members[i] + '" = "' + values[i] + '"';
    if (i < nb - 1) {
        sql += ', ';
    }
}

Here the values are enclosed by quotes and now it is a string "null". :-(

Could you please use also placeholders in UPDATE?

Best regards,
Mario

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions