Skip to content

Commit d8dddd0

Browse files
author
Tadeu Luis Pires Gaudio
committed
fix(PRB-1740): remove filter for query update without where
1 parent 628518f commit d8dddd0

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
![Publish Github Package](https://github.com/letsfullstack/loopback-connector-postgresql/workflows/Publish%20Github%20Package/badge.svg)
1+
![Publish Github Package](https://github.com/letsfullstack/loopback-connector-postgresql/workflows/Publish%20Github%20Package/badge.svg)
2+
3+
# Loopback PostgreSQL Connector no projeto ArboBackend
4+
5+
Faça o NPM install desse projeto e copie a pasta para node_modules/@letscomunica/loopback-connector-postgresql ( substitua a página caso exita )
26

37
# Loopback PostgreSQL Connector
48

lib/postgresql.js

-6
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,6 @@ PostgreSQL.prototype.executeSQL = function(sql, params, options, callback) {
123123
debug('SQL: %s', sql);
124124
}
125125

126-
if (sql && sql.match('UPDATE') && !sql.match('WHERE') && self.settings.blockUpdateWithoutWhere) {
127-
return process.nextTick(function() {
128-
callback(new Error(g.f('Você está executando um update sem WHERE. Corrija essa query, meu caro:',sql)));
129-
});
130-
}
131-
132126
function executeWithConnection(connection, done) {
133127
connection.query(sql, params, function(err, data) {
134128
// if(err) console.error(err);

0 commit comments

Comments
 (0)