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

@dbpath/oracle

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dbpath/oracle - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

2

dist/src/limitFn.hack.js

@@ -24,3 +24,3 @@ "use strict";

}
const copy = [sql[0].replace('select ', `select /*+ FIRST_ROWS(${stop}) */ rownum as ${exports.oracleRowNum},`), ...sql.slice(1)]
const copy = [sql[0].replace('select ', `select /*+ FIRST_ROWS(${stop}) */ `), ...sql.slice(1)]
.map(addLimit);

@@ -27,0 +27,0 @@ return [...copy,

@@ -45,5 +45,7 @@ "use strict";

}
const meta = { columns: result.metaData
const meta = {
columns: result.metaData
.map(md => ({ name: md.name.toLowerCase() }))
.filter(limitFn_hack_1.hackFilterColumnNames) };
.filter(limitFn_hack_1.hackFilterColumnNames)
};
let r = { rows, meta };

@@ -68,2 +70,3 @@ return r;

// console.log ( sql, result.rowsAffected )
connection.commit();
return result.rowsAffected;

@@ -70,0 +73,0 @@ }

@@ -72,3 +72,2 @@ "use strict";

});
dal.update("commit");
}

@@ -130,3 +129,3 @@ finally {

"select /*+ FIRST_ROWS(6) */ rownum as dbautorownum,* from table",
"where rownum <= 6 order by id",
"where rownum<=6 order by id",
"--4"

@@ -136,3 +135,3 @@ ]);

"select /*+ FIRST_ROWS(12) */ rownum as dbautorownum,* from table",
"where rownum <=12 order by id",
"where rownum<=12 order by id",
"--7"

@@ -139,0 +138,0 @@ ]);

{
"name": "@dbpath/oracle",
"description": "",
"version": "0.3.6",
"version": "0.3.7",
"main": "dist/index",

@@ -21,4 +21,4 @@ "types": "dist/index",

"oracledb": "^5.5.0",
"@dbpath/utils": "0.3.6",
"@dbpath/dal": "0.3.6"
"@dbpath/utils": "0.3.7",
"@dbpath/dal": "0.3.7"
},

@@ -25,0 +25,0 @@ "devDependencies": {

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