Skip to content

Update not work? #1

@crysan

Description

@crysan

Hi!

$db->build('update')->table('tblUsers')->set('book_sel', '=' , '1')->where('id', '=', '1')->execute();

return
Call to a member function where() on null (0).

And why did several types of operations?

$db->**build**('update')
	->table('users')
	->set('username','=','ed')
	->set('update_count','=','update_count + 1',true)
	->where('id','=','1234')
	->execute();

$db->**builder**('update')
	->table('original','a')
	->join('updated','b','innser')
	->on('a.URL','=','b.URL')
	->set('a.funded','=','b.funded',true)
	->set('a.days','=','b.days',true)
	->execute();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions