Skip to content

Model set $escape problem #1929

Description

@arkananta

It's look like if I use more than one SET, I can't use different $escape value.

$this->set('tanggal_transaksi', $data['tanggal_transaksi'], true)->set('balance', 'balance + ' . $data['amount'], FALSE)->where('user_id',$data['user_id'])->update();

generate this query

UPDATE transaksi SET tanggal_transaksi = 2019-04-09, balance = balance + 0.1 WHERE user_id = '12'

In this case I need tanggal transaksi to be escaped, and balance are not esacpe

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for infoIssues or pull requests that need further clarification from the author

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions