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.1.1 to 0.1.2

14

lib/Select.js

@@ -15,7 +15,8 @@ var Where = require("./Where");

var sql = {
from : [],
where : [],
order : [],
group_by : null,
found_rows : false
from : [],
where : [],
order : [],
group_by : null,
found_rows : false,
where_exists : false
};

@@ -150,2 +151,3 @@ var get_table_alias = function (table) {

});
sql.where_exists = true;
return this;

@@ -286,3 +288,3 @@ },

}
if (sql.from.length == 1) {
if (sql.from.length == 1 && !sql.where_exists) {
query.push(Dialect.escapeId(sql.from[i].t));

@@ -289,0 +291,0 @@ } else {

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

],
"version": "0.1.1",
"version": "0.1.2",
"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