Escape error on the Mysql driver in the "Where" clause

Bug #1034166 reported by edhelas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Datajar
Fix Committed
Undecided
Unassigned

Bug Description

The Mysql driver doesn't escape correctly the column of the tables selected in the where clauses, I have to escape them in my Datajar request.

        $query = Post::query()
                            ->join('Contact', array('Post.jid' => 'Contact.jid'))
                            ->where(array(
                                'Contact`.`key' => $this->user->getLogin(),
                                'Post`.`jid' => $from,
                                'Post`.`parentid' => ''))
                            ->orderby('Post.updated', true)
                            ->limit($start, '10');
        $messages = Post::run_query($query);

Etenil (etenil)
Changed in datajar:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.