Update Database.php #1013

Closed
wants to merge 1 commit into
from

Projects

None yet

4 participants

@minhna
minhna commented Oct 10, 2013

fix the error "Unsupported operand types line 425" while using mysql.
This is fix for issue #1003

@minhna minhna Update Database.php
fix the error "Unsupported operand types line 425" while using mysql.
193b655
@blainesch blainesch commented on the diff Oct 10, 2013
data/source/Database.php
+?>
@blainesch
blainesch Oct 10, 2013 Member

I believe this is an unintentional addition.

git reset --soft HEAD~1
git add --patch
git commit -m "Update Database.php"
git push -f origin master
@blainesch
Member

Can this pull request be sent to the dev branch?

@nateabele
Member

Under what circumstances is this issue triggered?

@minhna
minhna commented Oct 11, 2013

Hi, these codes trigger the error:
query in controller:

    $arr_requests = Requests::find('all', array(
        'conditions'=>array(
            'created_by'=>$user['id']
        ),
        'order'=>array('id'=>'DESC')
    ));

and this is the Requests model schema:

    protected $_schema = array(
        'id' => array('type' => 'int', 'primary' => true),
        'new' => array('type' => 'int'),        
        'model_id' => array('type' => 'int'),       
        'data' => array('type' => 'string'),
        'listing_days' => array('type' => 'int'),
        'created' => array('type' => 'date'),
        'expired' => array('type' => 'date'),
        'created_by' => array('type' => 'int'),
        'processed' => array('type' => 'int'),
        'published' => array('type' => 'int')
    );

Thank you.

@davidpersson davidpersson added a commit that referenced this pull request May 3, 2014
@davidpersson davidpersson Adding test to disprove #1013 and #1003. 208486b
@davidpersson
Member

Closing, please see #1003 for an explanation.

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