auraphp/Aura.SqlQuery

INSERT | onDuplicateKeyUpdateCols doesn't add bindvalues to getBindValues()

Opened this issue · 2 comments

Hello,

onDuplicateKeyUpdateCols(array("client_from" => "google")

it does replace on query string but doesn't add bind values ...

[query] => INSERT INTO `users`
    (`steamid`, `googleid`, `client_from`, `email`)
VALUES
    (:steamid_0, :googleid_0, :client_from_0, :email_0),
    (:steamid_1, :googleid_1, :client_from_1, :email_1) ON DUPLICATE KEY UPDATE
    `client_from` = :client_from__on_duplicate_key
    [bindvalues] => Array
        (
            [steamid_0] => 415671
            [googleid_0] => 992919
            [client_from_0] => steam
            [email_0] => nomail1@yahoo.com
            [steamid_1] => 456671
            [googleid_1] => 999919
            [client_from_1] => steam
            [email_1] => nomai8l@yahoo.net
        )

@Altegras do you have some code that can reproduce this?

@Altegras -- as @harikt notes, it would be good to see some code (or even better, a failing test) that illustrates the issue. Can you provide a PR or other example?