Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sql-query

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sql-query - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

9

lib/Select.js

@@ -117,12 +117,7 @@ var Where = require("./Where");

whereExists: function (table, table_link, link, conditions) {
var where = [{
sql.where.push({
t: (sql.from.length ? sql.from[sql.from.length - 1].a : null),
w: conditions,
e: { t: table, tl: get_table_alias(table_link), l: link }
}];
if (sql.where.length) {
sql.where[sql.where.length - 1] = sql.where[sql.where.length - 1].concat(where);
} else {
sql.where.push(where);
}
});
return this;

@@ -129,0 +124,0 @@ },

@@ -32,3 +32,3 @@ exports.build = function (Dialect, where) {

"WHERE " + Dialect.escapeId(where.e.l[0]) + " = " + Dialect.escapeId(where.e.tl, where.e.l[1]) + " " +
"AND " + buildOrGroup(Dialect, [{ t: null, w: where.w }]) +
"AND " + buildOrGroup(Dialect, { t: null, w: where.w }) +
")"

@@ -35,0 +35,0 @@ ];

@@ -9,3 +9,3 @@ {

],
"version": "0.0.18",
"version": "0.0.19",
"license": "MIT",

@@ -12,0 +12,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc