CartoDB / cartodb-nodejs

Node.js package for easy access to CartoDB's APIs
BSD 4-Clause "Original" or "Old" License
46 stars 34 forks source link

isWriteQuery method should also include 'alter' #18

Closed gouldingken closed 11 years ago

gouldingken commented 11 years ago

var isWriteQuery = CartoDB.prototype.isWriteQuery = function(sql) { return /insert|alter|delete|update/gi.test(sql);//KGMOD added 'alter' };

impronunciable commented 11 years ago

Can you send a pull request? I'll merge it. Thanks!