Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3717 in a recent build.
  1. #1
    Sencha - Dev Team
    Join Date
    Aug 2012
    Location
    France
    Posts
    23
    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
    Gainesville, FL
    Posts
    37,144
    Vote Rating
    855
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


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

Thread Participants: 1