Upgrade node-postgresql to ~1.1.3 fixing evented query model

This commit is contained in:
Sandro Santilli 2013-06-06 17:06:06 +02:00
parent 14d74da874
commit e03262c5da
3 changed files with 22 additions and 5 deletions

23
npm-shrinkwrap.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "cartodb_api", "name": "cartodb_api",
"version": "1.3.10", "version": "1.5.0",
"dependencies": { "dependencies": {
"cluster2": { "cluster2": {
"version": "0.3.5-cdb02", "version": "0.3.5-cdb02",
@ -295,8 +295,25 @@
} }
}, },
"pg": { "pg": {
"version": "0.12.3-cdb2", "version": "1.1.3",
"from": "git://github.com/CartoDB/node-postgres.git#cdb-0.12.3-cdb2" "dependencies": {
"buffer-writer": {
"version": "1.0.0",
"dependencies": {
"cloned": {
"version": "0.0.1",
"dependencies": {
"rmdir": {
"version": "1.0.0"
}
}
},
"async": {
"version": "0.2.9"
}
}
}
}
}, },
"generic-pool": { "generic-pool": {
"version": "2.0.3" "version": "2.0.3"

View File

@ -13,7 +13,7 @@
"express": "~2.5.11", "express": "~2.5.11",
"underscore" : "~1.3.3", "underscore" : "~1.3.3",
"underscore.string": "~1.1.6", "underscore.string": "~1.1.6",
"pg": "git://github.com/CartoDB/node-postgres.git#cdb-0.12.3-cdb2", "pg": "~1.1.3",
"express": "~2.5.11", "express": "~2.5.11",
"generic-pool": "~2.0.2", "generic-pool": "~2.0.2",
"redis": "0.7.1", "redis": "0.7.1",

View File

@ -468,7 +468,7 @@ test('ALTER TABLE with GET and auth', function(done){
test('multistatement insert, alter, select, begin, commit', function(done){ test('multistatement insert, alter, select, begin, commit', function(done){
assert.response(app, { assert.response(app, {
url: "/api/v1/sql?" + querystring.stringify({ url: "/api/v1/sql?" + querystring.stringify({
q: 'BEGIN; DELETE FROM test_table; COMMIT; BEGIN; INSERT INTO test_table(b) values (5); COMMIT; ALTER TABLE test_table ALTER b TYPE float USING b::float/2; SELECT b FROM test_table; COMMIT;', q: 'BEGIN; DELETE FROM test_table; COMMIT; BEGIN; INSERT INTO test_table(b) values (5); COMMIT; ALTER TABLE test_table ALTER b TYPE float USING b::float/2; SELECT b FROM test_table;',
api_key: 1234 api_key: 1234
}), }),
headers: {host: 'vizzuality.cartodb.com'}, headers: {host: 'vizzuality.cartodb.com'},