lisimba/Ext.data.WebSqlProxy — Issue #2: updateRecord doesn't work with Sencha 1.1
Author: moneypenny
Created: 2012-02-28 19:11:08+00:00
State: open

I changed `updateRecord` because `id = record.internalId || record[me.pkField]` was turning up undefined, as were `modifiedData = record.modified` and `newData = record.data`.

I modified the `id` variable to:

```javascript
id = record.internalId || record[me.pkField] || record.data[me.pkField],
```

I changed the `pairs` and `values` initialization to:

```javascript
/*for (var i in modifiedData) {
pairs.push('"'+i+'" = ?');
values.push(newData[i]);
}*/
var fields = Object.keys(record.data);
for (var i=0; i