Skip to content

Statement parser doesn't break on hyphen #563

@marekhanzlik

Description

@marekhanzlik

Hi i have some problems when switching from Mysql.Data to MySqlConnector

var insertProductCmd = new MySqlCommand($"INSERT INTO {Tables.PlayerProductsTable} (product_id, player_id, product_count) VALUES (@productID, @playerID, 0) " + $"ON DUPLICATE KEY " + $"UPDATE product_count=GREATEST(0, product_count-@productCount)", conn, transaction);

This command throws an product_count cannot be null
This doesnt happen on MySql.Data, what am i missing?

Second problem is #562

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions