Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Altegras opened this issue Sep 3, 2016 · 2 comments

Comments

@Altegras
Copy link

Altegras commented Sep 3, 2016

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] => [email protected]
            [steamid_1] => 456671
            [googleid_1] => 999919
            [client_from_1] => steam
            [email_1] => [email protected]
        )
@harikt
Copy link
Member

harikt commented Oct 14, 2016

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

@pmjones
Copy link
Member

pmjones commented Mar 22, 2017

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants