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

database update #201

Closed
dayrui opened this issue Jul 31, 2016 · 0 comments
Closed

database update #201

dayrui opened this issue Jul 31, 2016 · 0 comments
Assignees
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@dayrui
Copy link

dayrui commented Jul 31, 2016

$this->db->table('demo')->where('id', $id)->update( ['sitemap'=>'sitemap', 'site'=>'site']);

SQL : UPDATE demo SET sitemap = :sitemap, site = :site

return :

CodeIgniter\Database\Query Object ( [originalQueryString:protected] => UPDATEdemoSETsitemap= :sitemap,site= :site WHEREid= :id [finalQueryString:protected] => UPDATEdemoSETsitemap= 'site'map,site= 'site' WHEREid= 1

Matching error: :sitemap and :site

@lonnieezell lonnieezell added the bug Verified issues on the current code behavior or pull requests that will fix them label Aug 1, 2016
@lonnieezell lonnieezell self-assigned this Aug 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

2 participants