Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3717 in Sprint 28.
  1. #1
    Sencha User
    Join Date
    Aug 2012
    Location
    France
    Posts
    17
    Vote Rating
    0
    NiNiX is on a distinguished road

      0  

    Default [2.1.0] Ext.data.proxy.SQL crash on select with no sorters

    [2.1.0] Ext.data.proxy.SQL crash on select with no sorters


    Hi,

    The SQL proxy crashes at line 281:
    Code:
    ln = params.sorters.length;
    with the following error message: Uncaught TypeError: Cannot read property 'length' of null

    Use case:
    Code:
    Ext.define('App.model.Game', {
        extend: 'Ext.data.Model',
        config: {
            fields: [
                { name: 'id', type: 'int' },
                { name: 'name', type: 'string' }
            ],
    
            proxy: { type: 'sql' }
        }
    });
    Code:
    var store = Ext.create('Ext.data.Store', {
        model: 'App.model.Game',
        filters: [ {property: 'name', value: 'foo'} ],
        remoteFilter: true
    });
    
    store.load(function(records, operation, success) {
        [...]
    }
    Same kind of bug than those reported in this thread and this one, but 13 lines below

    Thanks

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.